[Libreoffice-commits] .: 7 commits - config_host.mk.in configure.ac download download.lst .gitignore icu/makefile.mk Makefile Makefile.fetch Makefile.top ooo.lst.in

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 13:41:08 PST 2012


 .gitignore        |    1 
 Makefile          |    1 
 Makefile.fetch    |  199 ++++++++++++++++++++++++++++++++++++
 Makefile.top      |   49 +++++++-
 config_host.mk.in |   88 +---------------
 configure.ac      |  295 +++++++++++++-----------------------------------------
 download          |  187 ----------------------------------
 download.lst      |   90 ++++++++++++++++
 icu/makefile.mk   |    8 +
 ooo.lst.in        |  115 ---------------------
 10 files changed, 423 insertions(+), 610 deletions(-)

New commits:
commit 42606e3def6cc546dec9a4e558a15605dd67b6fe
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Mon Nov 26 14:17:18 2012 +0100

    move more from download to Makefile.(top|fetch)
    
    Change-Id: I3bee487c9c5aa72b2236f076b28ee65cf76ac0dd

diff --git a/Makefile.fetch b/Makefile.fetch
index 3da38c6..ae46f55 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -69,7 +69,11 @@ define fetch_Optional
 $(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(fetch_BUILD_TYPE)),$2)
 endef
 
-fetch :
+download: $(fetch_LOGFILE)
+
+$(fetch_LOGFILE): $(SRCDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
+	@mkdir -p $(TARFILE_LOCATION)/tmp
+	@date >> $(fetch_LOGFILE)
 	$(foreach item, \
 		$(call fetch_Optional,CDR,CDR_TARBALL) \
 		$(call fetch_Optional,MSPUB,MSPUB_TARBALL) \
diff --git a/Makefile.top b/Makefile.top
index 6c42cdd..fc21ff9 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -1,6 +1,6 @@
 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
 
-.PHONY : all bootstrap build check clean clean-build clean-host dev-install distclean distro-pack-install docs fetch findunusedcode id install install-strip install-tb subsequentcheck tags
+.PHONY : all bootstrap build check clean clean-build clean-host dev-install distclean distro-pack-install docs download fetch findunusedcode get-submodules id install install-strip install-tb subsequentcheck tags
 
 ifeq ($(MAKECMDGOALS),)
 MAKECMDGOALS:=all
@@ -370,14 +370,48 @@ ifneq ($(filter-out clean distclean,$(MAKECMDGOALS)),)
 #
 ifneq ($(DO_FETCH_TARBALLS),NO)
 include $(SRCDIR)/Makefile.fetch
-endif
+fetch: download
+fetch: get-submodules
 fetch: $(SRCDIR)/src.downloaded
 
-$(SRCDIR)/src.downloaded : $(SRCDIR)/download $(SRCDIR)/config_host.mk
-ifneq ($(DO_FETCH_TARBALLS),NO)
-	@$< && touch $@
+ifneq (,$(wildcard .git))
+get-submodules:
+ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git)))
+ifeq (,$(GIT_LINK_SRC))
+	./g -f clone
+else # space-saving clone from another local workdir
+	@echo "FIXME: GIT_LINK_SRC method is not yet implemented with submodules" 1>&2
+	$(foreach i,$(GIT_NEEDED_SUBMODULES),\
+		rm -r $(i) && cp -R $(GIT_LINK_SRC)/$(i) $(i))
+#		bin/git-new-workdir $GIT_LINK_SRC/$i $i
+	git submodule update $(GIT_NEEDED_SUBMODULES)
+endif
+endif
+
+else # these sources are from a tarball, so get the other source tarballs
+gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
+$(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))
+
+get-submodules: | download
+ifneq ($(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER)),$(wildcard $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER))))
+	$(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
+		$(call fetch_Download_item,http://download.documentfoundation.org/libreoffice/src/$(shell echo $(gb_LO_VER) | sed -e "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"),libreoffice-$(i)-$(gb_LO_VER).tar.xz,no-check))
+	$(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
+		$(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
+endif
+
+endif
+
+# TODO: This should be really in external/ module, I think.
+$(SRCDIR)/src.downloaded : $(SRCDIR)/download $(SRCDIR)/config_host.mk | download
+ifneq ($(COM),MSC)
+	$< && touch $@
+endif
+
 else
+fetch:
 	@echo "Automatic fetching of external tarballs is disabled."
+
 endif
 
 #
diff --git a/download b/download
index 0a0e7d3..985443c 100755
--- a/download
+++ b/download
@@ -30,123 +30,7 @@ set -o pipefail
 
 # environment setup yet?
 if [ -z "$TARFILE_LOCATION" ]; then
-    . ./bin/get_config_variables TARFILE_LOCATION GIT_LINK_SRC GIT_NEEDED_SUBMODULES COM CPUNAME VCVER DBGHELP_DLL SRC_ROOT OXYGENOFFICE_PACK WGET CURL MD5SUM
-fi
-
-# we want to clone if we are in the bootstrap git repo and clone does not exist yet
-# we need to test for a .git in order not to clone after rsync if we are called in
-# the inner autogen of the buid-repo based build
-
-check_file()
-{
-    echo "Looking for $1 ..."
-    if test -f $1; then
-	    echo "ok"
-    else
-	    echo "missing required archive; run './download' again";
-	    exit 1;
-    fi
-}
-
-if [ -d .git ] ; then
-    if [ -z "$GIT_LINK_SRC" ]; then
-        ./g -f clone
-    else
-        echo "FIXME: GIT_LINK_SRC method is not yet implemented with submodules" 1>&2
-        # space-saving clone from another local workdir
-        for i in $GIT_NEEDED_SUBMODULES ; do
-            rm -r $i
-            cp -R $GIT_LINK_SRC/$i $i
-#            bin/git-new-workdir $GIT_LINK_SRC/$i $i
-        done
-        git submodule update $GIT_NEEDED_SUBMODULES
-    fi
-fi
-
-if [ ! -d "$TARFILE_LOCATION" ]; then
-    mkdir $TARFILE_LOCATION
-fi
-if [ ! -d "$TARFILE_LOCATION" ]; then
-    echo "Error: Cannot create $TARFILE_LOCATION."
-    exit 1
-fi
-
-start_dir=`pwd`
-logfile=$TARFILE_LOCATION/fetch.log
-date >> $logfile
-
-downloaditem()
-{
-    if [ "$1" != "" ]; then
-        if [ ! -f "../$2" ]; then
-            echo $2
-            if [ ! -z "$WGET" ]; then
-                $WGET --progress=dot:mega -Q 0 -P "." -l 0 -nd -nH -N $1/$2 2>&1 | tee -a $logfile
-            else
-                echo fetching $2
-                $CURL $file_date_check -O $1/$2 2>&1 | tee -a $logfile
-            fi
-            wret=$?
-            if [ $wret -ne 0 ]; then
-                mv $2 ${i}_broken
-                failed="$failed $2"
-                wret=0
-            fi
-            if [ -f $2 -a -n "$3" -a -n "$MD5SUM" ]; then
-                sum=`$MD5SUM $2 | sed "s/ .*//"`
-                if [ "$sum" != "$3" ]; then
-                    echo checksum failure for $2 2>&1 | tee -a $logfile
-                    failed="$failed $2"
-                    mv $2 ${i}_broken
-                else
-                    mv $2 ..
-                    if [ $? -ne 0 ]; then
-                        echo cannot mv $2 to destination 2>&1 | tee -a $logfile
-                        failed="$failed $2"
-                    fi
-                fi
-            else
-                mv $2 ..
-                if [ $? -ne 0 ]; then
-                    echo cannot mv $2 to destination 2>&1 | tee -a $logfile
-                    failed="$failed $2"
-                fi
-            fi
-        fi
-    fi
-}
-
-mkdir -p $TARFILE_LOCATION/tmp
-cd $TARFILE_LOCATION/tmp
-echo $$ > fetch-running
-
-if [ -f $start_dir/sources.ver -a ! -d $start_dir/.git ] ; then
-    # these sources are from a tarball, so get the other source tarballs
-    . $start_dir/sources.ver
-    # sources are put into "major.minor.micro" version directory on the dowload site, e.g. "3.5.2"
-    lo_bugfix_release_sources_ver=`echo $lo_sources_ver | sed -e "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"`
-    lo_src_dir="$start_dir/src"
-    mkdir -p "$lo_src_dir"
-    for piece in $GIT_NEEDED_SUBMODULES ; do
-        if [ "helpcontent2" = "$piece" ] ; then piece="help"; fi
-        tarname="libreoffice-$piece-$lo_sources_ver"
-        if [ ! -f "$TARFILE_LOCATION/$tarname.tar.xz" ] ; then
-	    downloaditem "http://download.documentfoundation.org/libreoffice/src/$lo_bugfix_release_sources_ver" "$tarname.tar.xz" ""
-	fi
-	$start_dir/bin/unpack-sources $start_dir $TARFILE_LOCATION/$tarname.tar.xz
-    done
-fi
-
-rm $TARFILE_LOCATION/tmp/*-*
-cd $start_dir
-
-if [ ! -z "$failed" ]; then
-    echo
-    echo ERROR: failed on:
-    for i in $failed ; do
-        echo $i
-    done
-    exit 1
+    . ./bin/get_config_variables TARFILE_LOCATION COM CPUNAME VCVER DBGHELP_DLL
 fi
 
 if [ "$COM" = "MSC" -a "$CPUNAME" = "INTEL" ]; then
@@ -189,12 +73,6 @@ if [ "$COM" = "MSC" ]; then
     fi
 fi
 
-if [ -n "$OXYGENOFFICE_PACK" ] ; then
-    check_file $TARFILE_LOCATION/$OXYGENOFFICE_PACK
-    echo "Unpacking OxygenOffice '$OXYGENOFFICE_PACK' ..."
-    unzip -o -q $TARFILE_LOCATION/$OXYGENOFFICE_PACK -d $SRC_ROOT/src
-fi
-
 # Local Variables:
 # tab-width: 4
 # indent-tabs-mode: nil
commit df50d2dcfeb382a051528e4f64bad4c0b8fe83f8
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Fri Nov 23 12:54:15 2012 +0100

    download few tarballs directly without md5sum in name
    
    ..and add few fixes, like:
    * use 'set -o pipefail' to fail meaningfully
    * include download.lst at the end of config_host.mk
    * MOZ_ZIP_* do not have md5sum, do not check for it
    
    Change-Id: I23759aa2f5fdd55b662588fdb0a31568a686aef7

diff --git a/Makefile.fetch b/Makefile.fetch
index eb0e35d..3da38c6 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -35,16 +35,31 @@ fetch_Download__checksum_command :=
 
 endif
 
-define fetch_Download_item
+# fetch__Download_item url tarball-name md5sum
+define fetch__Download_item
 $(if $(wildcard $(TARFILE_LOCATION)/$2),, \
 cd $(TARFILE_LOCATION)/tmp \
+&& set -o pipefail \
 $(call fetch_Download__wget_command,$1,$2) \
-$(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \
+$(if $3,$(call fetch_Download__checksum_command,$2,$3)) \
 && mv $2 ../ \
 )
 
 endef
 
+# fetch_Download_item url tarball-name no-sum?
+define fetch_Download_item
+$(call fetch__Download_item,$1,$2,$(if $3,,$(firstword $(subst -, ,$2))))
+
+endef
+
+# fetch_Download_item_special url variable-name
+define fetch_Download_item_special
+$(if $($(subst _TARBALL,_MD5SUM,$(2))),,$(error "fetch_Download_item_special: $2_MD5SUM can't be empty"))
+$(call fetch__Download_item,$1,$($2),$($(subst _TARBALL,_MD5SUM,$(2))))
+
+endef
+
 fetch_BUILD_TYPE := $(sort $(BUILD_TYPE))
 ifeq ($(CROSS_COMPILING),YES)
 fetch_BUILD_TYPE := $(sort $(fetch_BUILD_TYPE) $(shell . $(SRCDIR)/bin/get_config_variables --build BUILD_TYPE && echo $$BUILD_TYPE))
@@ -56,6 +71,11 @@ endef
 
 fetch :
 	$(foreach item, \
+		$(call fetch_Optional,CDR,CDR_TARBALL) \
+		$(call fetch_Optional,MSPUB,MSPUB_TARBALL) \
+		$(call fetch_Optional,VISIO,VISIO_TARBALL) \
+	,$(call fetch_Download_item_special,http://dev-www.libreoffice.org/src,$(item)))
+	$(foreach item, \
 		18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz \
 		7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz \
 		c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz \
@@ -68,7 +88,6 @@ fetch :
 		$(call fetch_Optional,BOOST,$(BOOST_TARBALL)) \
 		$(call fetch_Optional,BSH,$(BSH_TARBALL)) \
 		$(call fetch_Optional,CAIRO,$(CAIRO_TARBALL)) \
-		$(call fetch_Optional,CDR,$(CDR_TARBALL)) \
 		$(call fetch_Optional,CLUCENE,$(CLUCENE_TARBALL)) \
 		$(call fetch_Optional,CMIS,$(CMIS_TARBALL)) \
 		$(call fetch_Optional,CPPUNIT,$(CPPUNIT_TARBALL)) \
@@ -116,7 +135,6 @@ fetch :
 		$(call fetch_Optional,LPSOLVE,$(LPSOLVE_TARBALL)) \
 		$(call fetch_Optional,MDDS,$(MDDS_TARBALL)) \
 		$(call fetch_Optional,MOZ,$(MOZ_TARBALL)) \
-		$(call fetch_Optional,MSPUB,$(MSPUB_TARBALL)) \
 		$(call fetch_Optional,MYSQLCPPCONN,$(MYSQLCPPCONN_TARBALL)) \
 		$(call fetch_Optional,MYTHES,$(MYTHES_TARBALL)) \
 		$(call fetch_Optional,NEON,$(NEON_TARBALL)) \
@@ -136,7 +154,6 @@ fetch :
 		$(call fetch_Optional,TOMCAT,$(TOMCAT_TARBALL)) \
 		$(call fetch_Optional,UCPP,$(UCPP_TARBALL)) \
 		$(call fetch_Optional,VIGRA,$(VIGRA_TARBALL)) \
-		$(call fetch_Optional,VISIO,$(VISIO_TARBALL)) \
 		$(call fetch_Optional,WPD,$(WPD_TARBALL)) \
 		$(call fetch_Optional,WPG,$(WPG_TARBALL)) \
 		$(call fetch_Optional,WPS,$(WPS_TARBALL)) \
@@ -173,6 +190,6 @@ fetch :
 		$(call fetch_Optional,MOZ,$(MOZ_ZIP_INC)) \
 		$(call fetch_Optional,MOZ,$(MOZ_ZIP_LIB)) \
 		$(call fetch_Optional,MOZ,$(MOZ_ZIP_RUNTIME)) \
-	,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item)))
+	,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item),no-sum))
 
 # vim: set noet sw=4 ts=4:
diff --git a/config_host.mk.in b/config_host.mk.in
index ceef696..167e557 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -639,4 +639,5 @@ export ZLIB_CFLAGS=$(gb_SPACE)@ZLIB_CFLAGS@
 export ZLIB_LIBS=$(gb_SPACE)@ZLIB_LIBS@
 
 # tarball names
+# does use some of the variables defined above
 include @SRC_ROOT@/download.lst
diff --git a/download.lst b/download.lst
index 98749d6..5766d52 100644
--- a/download.lst
+++ b/download.lst
@@ -1,3 +1,10 @@
+CDR_MD5SUM := 3c0037fb07dea2f0bbae8386fa7c6a9a
+export CDR_TARBALL := libcdr-0.0.9.tar.bz2
+MSPUB_MD5SUM := b2db54b6e96287ac995d7ed654ace4fc
+export MSPUB_TARBALL := libmspub-0.0.3.tar.bz2
+VISIO_MD5SUM := 1e961f0112e5986105749640c2b9bc41
+export VISIO_TARBALL := libvisio-0.0.21.tar.bz2
+
 export AFMS_TARBALL := 1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz
 export APACHE_COMMONS_CODEC_TARBALL := af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
 export APACHE_COMMONS_HTTPCLIENT_TARBALL := 2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
@@ -6,7 +13,6 @@ export APACHE_COMMONS_LOGGING_TARBALL := 3c219630e4302863a9a83d0efde889db-common
 export BOOST_TARBALL := f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
 export BSH_TARBALL := ea570af93c284aa9e5621cd563f54f4d-bsh-2.0b1-src.tar.gz
 export CAIRO_TARBALL := f101a9e88b783337b20b2e26dfd26d5f-cairo-1.10.2.tar.gz
-export CDR_TARBALL := 3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2
 export CLUCENE_TARBALL := 48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
 export CMIS_TARBALL := b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz
 export CPPUNIT_TARBALL := fa9aa839145cdf860bf596532bb8af97-cppunit-1.13.1.tar.gz
@@ -53,7 +59,6 @@ export LIBXSLT_TARBALL := e61d0364a30146aaa3001296f853b2b9-libxslt-1.1.26.tar.gz
 export LPSOLVE_TARBALL := 26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
 export MDDS_TARBALL := 9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2
 export MOZ_TARBALL := a169ab152209200a7bad29a275cb0333-seamonkey-1.1.14.source.tar.gz
-export MSPUB_TARBALL := b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2
 export MYSQLCPPCONN_TARBALL := 0981bda6548a8c8233ffce2b6e4b2a23-mysql-connector-c++-1.1.0.tar.gz
 export MYTHES_TARBALL := 46e92b68e31e858512b680b3b61dc4c1-mythes-1.2.3.tar.gz
 export NEON_TARBALL := ff369e69ef0f0143beb5626164e87ae2-neon-0.29.5.tar.gz
@@ -73,7 +78,6 @@ export SWING_TARBALL := 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
 export TOMCAT_TARBALL := 2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
 export UCPP_TARBALL := 0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
 export VIGRA_TARBALL := ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz
-export VISIO_TARBALL := 1e961f0112e5986105749640c2b9bc41-libvisio-0.0.21.tar.bz2
 export WPD_TARBALL := e7f84e3199dfee9122949448cab3823f-libwpd-0.9.6.tar.bz2
 export WPG_TARBALL := 9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
 export WPS_TARBALL := d197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2
commit cb3fc7ff18545412827cb017818890eda7e2f564
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Thu Nov 22 19:15:18 2012 +0100

    download also tarballs needed for build platform
    
    Change-Id: I21fc00bd0b5acfd81e378d2e3c0ceb976b8f2a4e

diff --git a/Makefile.fetch b/Makefile.fetch
index be434a6..eb0e35d 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -45,8 +45,13 @@ $(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \
 
 endef
 
+fetch_BUILD_TYPE := $(sort $(BUILD_TYPE))
+ifeq ($(CROSS_COMPILING),YES)
+fetch_BUILD_TYPE := $(sort $(fetch_BUILD_TYPE) $(shell . $(SRCDIR)/bin/get_config_variables --build BUILD_TYPE && echo $$BUILD_TYPE))
+endif
+
 define fetch_Optional
-$(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(BUILD_TYPE)),$2)
+$(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(fetch_BUILD_TYPE)),$2)
 endef
 
 fetch :
commit e80393462d62be97d7efabaf1b17e269efb37637
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Thu Nov 22 12:14:05 2012 +0100

    support for --with-all-tarballs
    
    - this is needed for packaging, so that all possible tarballs can be
      available in the complete source package
    
    Do not define tarball names in configure. Move the variables into
    download.lst, which is going to be included in config_host.mk.
    We already have conditions for getting tarballs in Makefile.fetch.
    
    Change-Id: I160aff6426a253814eea07d2467e4942478f653a

diff --git a/Makefile.fetch b/Makefile.fetch
index 8b50739..be434a6 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -46,12 +46,11 @@ $(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \
 endef
 
 define fetch_Optional
-$(if $(filter $1,$(BUILD_TYPE)),$2)
+$(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(BUILD_TYPE)),$2)
 endef
 
 fetch :
 	$(foreach item, \
-		$(if $(filter YES,$(CROSS_COMPILING)),$(BUILD_TARBALLS)) \
 		18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz \
 		7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz \
 		c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz \
diff --git a/Makefile.top b/Makefile.top
index 3d570f8..6c42cdd 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -368,13 +368,13 @@ ifneq ($(filter-out clean distclean,$(MAKECMDGOALS)),)
 #
 # Fetch
 #
-ifeq ($(DO_FETCH_TARBALLS),YES)
+ifneq ($(DO_FETCH_TARBALLS),NO)
 include $(SRCDIR)/Makefile.fetch
 endif
 fetch: $(SRCDIR)/src.downloaded
 
 $(SRCDIR)/src.downloaded : $(SRCDIR)/download $(SRCDIR)/config_host.mk
-ifeq ($(DO_FETCH_TARBALLS),YES)
+ifneq ($(DO_FETCH_TARBALLS),NO)
 	@$< && touch $@
 else
 	@echo "Automatic fetching of external tarballs is disabled."
diff --git a/config_host.mk.in b/config_host.mk.in
index 57153e2..ceef696 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -12,7 +12,6 @@ gb_SPACE:=$(gb_SPACE) $(gb_SPACE)
 export SRC_ROOT=@SRC_ROOT@
 
 export ABOUT_BACKGROUND_SVG=@ABOUT_BACKGROUND_SVG@
-export AFMS_TARBALL=@AFMS_TARBALL@
 export ALIGNOF_DOUBLE=@ALIGNOF_DOUBLE@
 export ALIGNOF_INT=@ALIGNOF_INT@
 export ALIGNOF_LONG=@ALIGNOF_LONG@
@@ -28,10 +27,6 @@ export ANDROID_NDK_HOME=@ANDROID_NDK_HOME@
 export ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR=@ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR@
 export ANDROID_NDK_GDBSERVER=@ANDROID_NDK_GDBSERVER@
 export ANDROID_SDK_HOME=@ANDROID_SDK_HOME@
-export APACHE_COMMONS_CODEC_TARBALL=@APACHE_COMMONS_CODEC_TARBALL@
-export APACHE_COMMONS_HTTPCLIENT_TARBALL=@APACHE_COMMONS_HTTPCLIENT_TARBALL@
-export APACHE_COMMONS_LANG_TARBALL=@APACHE_COMMONS_LANG_TARBALL@
-export APACHE_COMMONS_LOGGING_TARBALL=@APACHE_COMMONS_LOGGING_TARBALL@
 export AR=@AR@
 export ASSERT_ALWAYS_ABORT=@ASSERT_ALWAYS_ABORT@
 export ATL_INCLUDE=@ATL_INCLUDE@
@@ -42,9 +37,7 @@ export BOOST_CPPFLAGS=@BOOST_CPPFLAGS@
 export BOOST_DATE_TIME_LIB=@BOOST_DATE_TIME_LIB@
 export BOOST_LDFLAGS=@BOOST_LDFLAGS@
 export BOOST_SYSTEM_LIB=@BOOST_SYSTEM_LIB@
-export BOOST_TARBALL=@BOOST_TARBALL@
 export BSH_JAR=@BSH_JAR@
-export BSH_TARBALL=@BSH_TARBALL@
 export BUILD_DMAKE=@BUILD_DMAKE@
 export BUILD_MOZAB=@BUILD_MOZAB@
 export BUILD_PLATFORM=@build@
@@ -55,21 +48,17 @@ export BUILD_VER_STRING=@BUILD_VER_STRING@
 export BUILD_X64=@BUILD_X64@
 export CAIRO_CFLAGS=$(gb_SPACE)@CAIRO_CFLAGS@
 export CAIRO_LIBS=$(gb_SPACE)@CAIRO_LIBS@
-export CAIRO_TARBALL=@CAIRO_TARBALL@
 export CC=@CC@
 export CC_FOR_BUILD=@CC_FOR_BUILD@
 export CDR_CFLAGS=$(gb_SPACE)@CDR_CFLAGS@
 export CDR_LIBS=$(gb_SPACE)@CDR_LIBS@
-export CDR_TARBALL=@CDR_TARBALL@
 @x_CFLAGS@ export CFLAGS=@CFLAGS@
 export CHECK_PARALLELISM?=@CHECK_PARALLELISM@
 export CLANGPLUGIN_CPPFLAGS=@CLANGPLUGIN_CPPFLAGS@
 export CLUCENE_CFLAGS=$(gb_SPACE)@CLUCENE_CFLAGS@
 export CLUCENE_LIBS=$(gb_SPACE)@CLUCENE_LIBS@
-export CLUCENE_TARBALL=@CLUCENE_TARBALL@
 export CMIS_CFLAGS=$(gb_SPACE)@CMIS_CFLAGS@
 export CMIS_LIBS=$(gb_SPACE)@CMIS_LIBS@
-export CMIS_TARBALL=@CMIS_TARBALL@
 export COM=@COM@
 export COM_GCC_IS_CLANG=@COM_GCC_IS_CLANG@
 export COMEX=@COMEX@
@@ -83,15 +72,12 @@ export COMP_ENV=@OUTPATH@
 export COM_FOR_BUILD=@COM_FOR_BUILD@
 export CPPUNIT_CFLAGS=$(gb_SPACE)@CPPUNIT_CFLAGS@
 export CPPUNIT_LIBS=$(gb_SPACE)@CPPUNIT_LIBS@
-export CPPUNIT_TARBALL=@CPPUNIT_TARBALL@
 export CPU=@CPU@
 export CPUNAME=@CPUNAME@
 export CPUNAME_FOR_BUILD=@CPUNAME_FOR_BUILD@
 export CPU_FOR_BUILD=@CPU_FOR_BUILD@
 export CROSS_COMPILING=@CROSS_COMPILING@
-export CT2N_TARBALL=@CT2N_TARBALL@
 export CURL=@CURL@
-export CURL_TARBALL=@CURL_TARBALL@
 export CURL_CFLAGS=$(gb_SPACE)@CURL_CFLAGS@
 export CURL_LIBS=$(gb_SPACE)@CURL_LIBS@
 export CXX=@CXX@
@@ -184,28 +170,16 @@ export ENABLE_VALGRIND=@ENABLE_VALGRIND@
 export ENABLE_ZENITY=@ENABLE_ZENITY@
 export EPM=@EPM@
 export EPM_FLAGS=@EPM_FLAGS@
-export EPM_TARBALL=@EPM_TARBALL@
 export EXTERNAL_WARNINGS_NOT_ERRORS=@EXTERNAL_WARNINGS_NOT_ERRORS@
 @x_Cygwin@ export FIND=@WIN_FIND@
 export FLAT_LOGO_SVG=@FLAT_LOGO_SVG@
 export FLEX=@FLEX@
 export FLUTE_JAR=@FLUTE_JAR@
-export FONT_LINLIBERTINEG_TARBALL=@FONT_LINLIBERTINEG_TARBALL@
-export FONT_LIBERATION_NARROW_TARBALL=@FONT_LIBERATION_NARROW_TARBALL@
-export FONT_LIBERATION_TARBALL=@FONT_LIBERATION_TARBALL@
-export FONT_GENTIUM_TARBALL=@FONT_GENTIUM_TARBALL@
-export FONT_DEJAVU_TARBALL=@FONT_DEJAVU_TARBALL@
-export FONT_PTSERIF_TARBALL=@FONT_PTSERIF_TARBALL@
-export FONT_OPENSANS_TARBALL=@FONT_OPENSANS_TARBALL@
-export FONT_SOURCESANS_TARBALL=@FONT_SOURCESANS_TARBALL@
-export FONT_SOURCECODE_TARBALL=@FONT_SOURCECODE_TARBALL@
 export FONTCONFIG_CFLAGS=$(gb_SPACE)@FONTCONFIG_CFLAGS@
 export FONTCONFIG_LIBS=$(gb_SPACE)@FONTCONFIG_LIBS@
-export FONTCONFIG_TARBALL=@FONTCONFIG_TARBALL@
 export FRAMEWORKSHOME=@FRAMEWORKSHOME@
 export FREETYPE_CFLAGS=$(gb_SPACE)@FREETYPE_CFLAGS@
 export FREETYPE_LIBS=$(gb_SPACE)@FREETYPE_LIBS@
-export FREETYPE_TARBALL=@FREETYPE_TARBALL@
 export GCONF_CFLAGS=$(gb_SPACE)@GCONF_CFLAGS@
 export GCONF_LIBS=$(gb_SPACE)@GCONF_LIBS@
 export GIO_CFLAGS=$(gb_SPACE)@GIO_CFLAGS@
@@ -226,7 +200,6 @@ export GPERF=@GPERF@
 export GPERF=@GPERF@
 export GRAPHITE_CFLAGS=$(gb_SPACE)@GRAPHITE_CFLAGS@
 export GRAPHITE_LIBS=$(gb_SPACE)@GRAPHITE_LIBS@
-export GRAPHITE_TARBALL=@GRAPHITE_TARBALL@
 @x_Cygwin@ export GREP=@WIN_GREP@
 export GSTREAMER_CFLAGS=$(gb_SPACE)@GSTREAMER_CFLAGS@
 export GSTREAMER_LIBS=$(gb_SPACE)@GSTREAMER_LIBS@
@@ -267,14 +240,11 @@ export HAVE_READDIR_R=@HAVE_READDIR_R@
 export HAVE_THREADSAFE_STATICS=@HAVE_THREADSAFE_STATICS@
 export HOST_PLATFORM=@host@
 export HSQLDB_JAR=@HSQLDB_JAR@
-export HSQLDB_TARBALL=@HSQLDB_TARBALL@
 export HSQLDB_USE_JDBC_4_1=@HSQLDB_USE_JDBC_4_1@
 export HUNART_EXTENSION_PACK=@HUNART_EXTENSION_PACK@
-export HUNSPELL_TARBALL=@HUNSPELL_TARBALL@
 export HUNSPELL_CFLAGS=$(gb_SPACE)@HUNSPELL_CFLAGS@
 export HUNSPELL_LIBS=$(gb_SPACE)@HUNSPELL_LIBS@
 export HYPHEN_LIB=$(gb_SPACE)@HYPHEN_LIB@
-export HYPHEN_TARBALL=@HYPHEN_TARBALL@
 export HYPH_SYSTEM_DIR=@HYPH_SYSTEM_DIR@
 export ICECREAM_RUN=@ICECREAM_RUN@
 export ICU_MAJOR=@ICU_MAJOR@
@@ -284,8 +254,6 @@ export ICU_RECLASSIFIED_CLOSE_PARENTHESIS=@ICU_RECLASSIFIED_CLOSE_PARENTHESIS@
 export ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER=@ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER@
 export ICU_RECLASSIFIED_HEBREW_LETTER=@ICU_RECLASSIFIED_HEBREW_LETTER@
 export ICU_RECLASSIFIED_PREPEND_SET_EMPTY=@ICU_RECLASSIFIED_PREPEND_SET_EMPTY@
-export ICU_TARBALL=@ICU_TARBALL@
-export ICU_DATA_SUBSET_ZIP=@ICU_DATA_SUBSET_ZIP@
 export ILIB=@ILIB@
 export INPATH=@INPATH@
 export INPATH_FOR_BUILD=@INPATH_FOR_BUILD@
@@ -306,7 +274,6 @@ export JDK=@JDK@
 @x_JDKLIB@ export JDKLIB=@JDKLIB@
 export JITC_PROCESSOR_TYPE=@JITC_PROCESSOR_TYPE@
 export JFREEREPORT_JAR=@JFREEREPORT_JAR@
-export JPEG_TARBALL=@JPEG_TARBALL@
 export JVM_ONE_PATH_CHECK=@JVM_ONE_PATH_CHECK@
 export TDE_CFLAGS=$(gb_SPACE)@TDE_CFLAGS@
 export TDE_LIBS=$(gb_SPACE)@TDE_LIBS@
@@ -317,11 +284,9 @@ export KDE_GLIB_CFLAGS=$(gb_SPACE)@KDE_GLIB_CFLAGS@
 export KDE_GLIB_LIBS=$(gb_SPACE)@KDE_GLIB_LIBS@
 export KDE_HAVE_GLIB=@KDE_HAVE_GLIB@
 export KDE_LIBS=$(gb_SPACE)@KDE_LIBS@
-export LANGUAGETOOL_TARBALL=@LANGUAGETOOL_TARBALL@
 export L10N_MODULE=@L10N_MODULE@
 export LCMS2_CFLAGS=$(gb_SPACE)@LCMS2_CFLAGS@
 export LCMS2_LIBS=$(gb_SPACE)@LCMS2_LIBS@
-export LCMS2_TARBALL=@LCMS2_TARBALL@
 @x_LDFLAGS@ export LDFLAGS=@LDFLAGS@
 export LFS_CFLAGS=@LFS_CFLAGS@
 export LIBBASE_JAR=@LIBBASE_JAR@
@@ -330,13 +295,11 @@ export LIBEXSLT_CFLAGS=$(gb_SPACE)@LIBEXSLT_CFLAGS@
 export LIBEXSLT_LIBS=$(gb_SPACE)@LIBEXSLT_LIBS@
 export LIBEXTTEXTCAT_CFLAGS=$(gb_SPACE)@LIBEXTTEXTCAT_CFLAGS@
 export LIBEXTTEXTCAT_LIBS=$(gb_SPACE)@LIBEXTTEXTCAT_LIBS@
-export LIBEXTTEXTCAT_TARBALL=@LIBEXTTEXTCAT_TARBALL@
 export LIBFONTS_JAR=@LIBFONTS_JAR@
 export LIBFORMULA_JAR=@LIBFORMULA_JAR@
 export LIBLAYOUT_JAR=@LIBLAYOUT_JAR@
 export LIBLANGTAG_CFLAGS=$(gb_SPACE)@LIBLANGTAG_CFLAGS@
 export LIBLANGTAG_LIBS=$(gb_SPACE)@LIBLANGTAG_LIBS@
-export LIBLANGTAG_TARBALL=@LIBLANGTAG_TARBALL@
 export LIBLOADER_JAR=@LIBLOADER_JAR@
 export LIBMGR_X64_BINARY=@LIBMGR_X64_BINARY@
 export LIBMYSQL_PATH=@LIBMYSQL_PATH@
@@ -347,13 +310,9 @@ export LIBSERIALIZER_JAR=@LIBSERIALIZER_JAR@
 export LIBXML_CFLAGS=$(gb_SPACE)@LIBXML_CFLAGS@
 export LIBXML_JAR=@LIBXML_JAR@
 export LIBXML_LIBS=$(gb_SPACE)@LIBXML_LIBS@
-export LIBXML_TARBALL=@LIBXML_TARBALL@
-export LIBXMLSEC_TARBALL=@LIBXMLSEC_TARBALL@
 export LIBXSLT_CFLAGS=$(gb_SPACE)@LIBXSLT_CFLAGS@
 export LIBXSLT_LIBS=$(gb_SPACE)@LIBXSLT_LIBS@
-export LIBXSLT_TARBALL=@LIBXSLT_TARBALL@
 export LINK_X64_BINARY=@LINK_X64_BINARY@
-export LPSOLVE_TARBALL=@LPSOLVE_TARBALL@
 @x_Cygwin@ export LS=@WIN_LS@
 export MANDIR=@MANDIR@
 export MACOSX_DEPLOYMENT_TARGET=@MACOSX_DEPLOYMENT_TARGET@
@@ -364,7 +323,6 @@ export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
 export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
 export MD5SUM=@MD5SUM@
 export MDDS_CPPFLAGS=$(gb_SPACE)@MDDS_CPPFLAGS@
-export MDDS_TARBALL=@MDDS_TARBALL@
 export MERGELIBS=@MERGELIBS@
 export MFC_INCLUDE=@MFC_INCLUDE@
 export MFC_LIB=@MFC_LIB@
@@ -438,23 +396,18 @@ export MOZ_LIB=@MOZ_LIB@
 export MOZ_LIB_XPCOM=@MOZ_LIB_XPCOM@
 export MSPUB_CFLAGS=$(gb_SPACE)@MSPUB_CFLAGS@
 export MSPUB_LIBS=$(gb_SPACE)@MSPUB_LIBS@
-export MSPUB_TARBALL=@MSPUB_TARBALL@
 export MYSQL_DEFINES=@MYSQL_DEFINES@
 export MYSQL_INC=@MYSQL_INC@
 export MYSQL_LIB=@MYSQL_LIB@
-export MYSQLCPPCONN_TARBALL=@MYSQLCPPCONN_TARBALL@
 export MYTHES_CFLAGS=$(gb_SPACE)@MYTHES_CFLAGS@
 export MYTHES_LIBS=$(gb_SPACE)@MYTHES_LIBS@
-export MYTHES_TARBALL=@MYTHES_TARBALL@
 export NEON_CFLAGS=$(gb_SPACE)@NEON_CFLAGS@
 export NEON_LIBS=$(gb_SPACE)@NEON_LIBS@
-export NEON_TARBALL=@NEON_TARBALL@
 export NEON_VERSION=@NEON_VERSION@
 export NM=@NM@
 export nodep=@nodep@
 export NSS_CFLAGS=$(gb_SPACE)@NSS_CFLAGS@
 export NSS_LIBS=$(gb_SPACE)@NSS_LIBS@
-export NSS_TARBALL=@NSS_TARBALL@
 export NUMBERTEXT_EXTENSION_PACK=@NUMBERTEXT_EXTENSION_PACK@
 @x_OBJCFLAGS@ export OBJCFLAGS=@OBJCFLAGS@
 @x_OBJCXXFLAGS@ export OBJCXXFLAGS=@OBJCXXFLAGS@
@@ -468,13 +421,10 @@ export OOOP_TEMPLATES_PACK=@OOOP_TEMPLATES_PACK@
 export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
 export OOO_SHELL=@BASH@
 export OOO_VENDOR=@OOO_VENDOR@
-export OPENLDAP_TARBALL=@OPENLDAP_TARBALL@
 export OPENSSL_CFLAGS=$(gb_SPACE)@OPENSSL_CFLAGS@
 export OPENSSL_LIBS=$(gb_SPACE)@OPENSSL_LIBS@
-export OPENSSL_TARBALL=@OPENSSL_TARBALL@
 export ORCUS_CFLAGS=$(gb_SPACE)@ORCUS_CFLAGS@
 export ORCUS_LIBS=$(gb_SPACE)@ORCUS_LIBS@
-export ORCUS_TARBALL=@ORCUS_TARBALL@
 export OS=@OS@
 export OSVERSION=@OSVERSION@
 export OS_FOR_BUILD=@OS_FOR_BUILD@
@@ -486,17 +436,14 @@ export OXYGENOFFICE_PACK=@OXYGENOFFICE_PACK@
 export PATH=@LO_PATH@
 export PATH_SEPERATOR=@P_SEP@
 export PERL=@PERL@
-export PIXMAN_TARBALL=@PIXMAN_TARBALL@
 export PKGFORMAT=@PKGFORMAT@
 export PKGMK=@PKGMK@
 export PKG_CONFIG=@PKG_CONFIG@
 export PLATFORMID=@PLATFORMID@
-export PNG_TARBALL=@PNG_TARBALL@
 export POPPLER_CFLAGS=$(gb_SPACE)@POPPLER_CFLAGS@
 export POPPLER_LIBS=$(gb_SPACE)@POPPLER_LIBS@
 export POSTGRESQL_INC=@POSTGRESQL_INC@
 export POSTGRESQL_LIB=@POSTGRESQL_LIB@
-export POSTGRESQL_TARBALL=@POSTGRESQL_TARBALL@
 export PREBUILD_MOZAB=@PREBUILD_MOZAB@
 export PREFIXDIR=@PREFIXDIR@
 export PRODUCT=@PRODUCT@
@@ -518,32 +465,15 @@ export PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
 export PYTHON_LIBS=$(gb_SPACE)@PYTHON_LIBS@
 export PYTHON_VERSION_MAJOR=@PYTHON_VERSION_MAJOR@
 export PYTHON_VERSION_MINOR=@PYTHON_VERSION_MINOR@
-export PYTHON_TARBALL=@PYTHON_TARBALL@
 export PYTHON_VERSION=@PYTHON_VERSION@
 export RANLIB=@RANLIB@
-export RAPTOR_TARBALL=@RAPTOR_TARBALL@
-export RASQAL_TARBALL=@RASQAL_TARBALL@
 export REDLAND_CFLAGS=$(gb_SPACE)@REDLAND_CFLAGS@
 export REDLAND_LIBS=$(gb_SPACE)@REDLAND_LIBS@
-export REDLAND_TARBALL=@REDLAND_TARBALL@
 export RHINO_JAR=@RHINO_JAR@
-export RHINO_TARBALL=@RHINO_TARBALL@
 export RPM=@RPM@
 export RTL_OS=@RTL_OS@
 export RTL_ARCH=@RTL_ARCH@
 export SAC_JAR=@SAC_JAR@
-export JFREEREPORT_SAC_TARBALL=@JFREEREPORT_SAC_TARBALL@
-export JFREEREPORT_LIBBASE_TARBALL=@JFREEREPORT_LIBBASE_TARBALL@
-export JFREEREPORT_FLUTE_TARBALL=@JFREEREPORT_FLUTE_TARBALL@
-export JFREEREPORT_LIBLOADER_TARBALL=@JFREEREPORT_LIBLOADER_TARBALL@
-export JFREEREPORT_LIBXML_TARBALL=@JFREEREPORT_LIBXML_TARBALL@
-export JFREEREPORT_LIBFORMULA_TARBALL=@JFREEREPORT_LIBFORMULA_TARBALL@
-export JFREEREPORT_LIBFONTS_TARBALL=@JFREEREPORT_LIBFONTS_TARBALL@
-export JFREEREPORT_LIBREPOSITORY_TARBALL=@JFREEREPORT_LIBREPOSITORY_TARBALL@
-export JFREEREPORT_LIBSERIALIZER_TARBALL=@JFREEREPORT_LIBSERIALIZER_TARBALL@
-export JFREEREPORT_FLOW_ENGINE_TARBALL=@JFREEREPORT_FLOW_ENGINE_TARBALL@
-export JFREEREPORT_LIBLAYOUT_TARBALL=@JFREEREPORT_LIBLAYOUT_TARBALL@
-export EXPAT_TARBALL=@EXPAT_TARBALL@
 export SAL_ENABLE_FILE_LOCKING=1
 export SCPDEFS=@SCPDEFS@
 export SERVLETAPI_JAR=@SERVLETAPI_JAR@
@@ -578,7 +508,6 @@ export SUNTEMPLATES_ES_PACK=@SUNTEMPLATES_ES_PACK@
 export SUNTEMPLATES_FR_PACK=@SUNTEMPLATES_FR_PACK@
 export SUNTEMPLATES_HU_PACK=@SUNTEMPLATES_HU_PACK@
 export SUNTEMPLATES_IT_PACK=@SUNTEMPLATES_IT_PACK@
-export SWING_TARBALL=@SWING_TARBALL@
 export SYSBASE=@SYSBASE@
 export SYSTEM_APACHE_COMMONS=@SYSTEM_APACHE_COMMONS@
 export SYSTEM_BOOST=@SYSTEM_BOOST@
@@ -645,9 +574,7 @@ export TELEPATHY_LIBS=$(gb_SPACE)@TELEPATHY_LIBS@
 export THES_SYSTEM_DIR=@THES_SYSTEM_DIR@
 @x_Cygwin@ export TMP=@TMP_DIRECTORY@
 export TMPDIR=@TEMP_DIRECTORY@
-export TOMCAT_TARBALL=@TOMCAT_TARBALL@
 export TYPO_EXTENSION_PACK=@TYPO_EXTENSION_PACK@
-export UCPP_TARBALL=@UCPP_TARBALL@
 export UNIXWRAPPERNAME=@UNIXWRAPPERNAME@
 export UNOWINREG_DLL=@UNOWINREG_DLL@
 export UPD=@UPD@
@@ -659,10 +586,8 @@ export VALGRIND_CFLAGS=$(gb_SPACE)@VALGRIND_CFLAGS@
 export VALIDATOR_EXTENSION_PACK=@VALIDATOR_EXTENSION_PACK@
 export VCVER=@VCVER@
 export VERBOSE=@VERBOSE@
-export VIGRA_TARBALL=@VIGRA_TARBALL@
 export VISIO_CFLAGS=$(gb_SPACE)@VISIO_CFLAGS@
 export VISIO_LIBS=$(gb_SPACE)@VISIO_LIBS@
-export VISIO_TARBALL=@VISIO_TARBALL@
 export WATCH_WINDOW_EXTENSION_PACK=@WATCH_WINDOW_EXTENSION_PACK@
 export WGET=@WGET@
 export WINDOWS_SDK_HOME=@WINDOWS_SDK_HOME@
@@ -697,24 +622,21 @@ export WORKDIR_FOR_BUILD=@WORKDIR_FOR_BUILD@
 export WORK_STAMP=@SOURCEVERSION@
 export WPD_CFLAGS=$(gb_SPACE)@WPD_CFLAGS@
 export WPD_LIBS=$(gb_SPACE)@WPD_LIBS@
-export WPD_TARBALL=@WPD_TARBALL@
 export WPG_CFLAGS=$(gb_SPACE)@WPG_CFLAGS@
 export WPG_LIBS=$(gb_SPACE)@WPG_LIBS@
-export WPG_TARBALL=@WPG_TARBALL@
 export WPS_CFLAGS=$(gb_SPACE)@WPS_CFLAGS@
 export WPS_LIBS=$(gb_SPACE)@WPS_LIBS@
-export WPS_TARBALL=@WPS_TARBALL@
 export XCRUN=@XCRUN@
 export XINERAMA_LINK=@XINERAMA_LINK@
 export XMLLINT=@XMLLINT@
-export XPDF_TARBALL=@XPDF_TARBALL@
 export XRANDR_CFLAGS=$(gb_SPACE)@XRANDR_CFLAGS@
 export XRANDR_DLOPEN=@XRANDR_DLOPEN@
 export XRANDR_LIBS=$(gb_SPACE)@XRANDR_LIBS@
 export XRENDER_CFLAGS=$(gb_SPACE)@XRENDER_CFLAGS@
 export XRENDER_LIBS=$(gb_SPACE)@XRENDER_LIBS@
-export XSLTML_TARBALL=@XSLTML_TARBALL@
 export XSLTPROC=@XSLTPROC@
 export ZLIB_CFLAGS=$(gb_SPACE)@ZLIB_CFLAGS@
 export ZLIB_LIBS=$(gb_SPACE)@ZLIB_LIBS@
-export ZLIB_TARBALL=@ZLIB_TARBALL@
+
+# tarball names
+include @SRC_ROOT@/download.lst
diff --git a/configure.ac b/configure.ac
index 63bde77..cb6a7a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -498,8 +498,6 @@ linux-android*)
     fi
 
     BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
-    FREETYPE_TARBALL=dbf2caca1d3afd410a29217a9809d397-freetype-2.4.8.tar.bz2
-    FONTCONFIG_TARBALL=77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
     ;;
 
 *)
@@ -522,9 +520,6 @@ AC_SUBST(OSVERSION)
 AC_SUBST(PTHREAD_CFLAGS)
 AC_SUBST(PTHREAD_LIBS)
 
-AC_SUBST(FREETYPE_TARBALL)
-AC_SUBST(FONTCONFIG_TARBALL)
-
 ###############################################################################
 # Extensions switches --enable/--disable
 ###############################################################################
@@ -2120,6 +2115,10 @@ AC_ARG_WITH(check-jobs,
          Default value is the same as 'parallelism'. Useful because the subsequent tests are very lightweight.]),
 ,)
 
+AC_ARG_WITH(all-tarballs,
+    AS_HELP_STRING([--with-all-tarballs],
+        [Download all external tarballs unconditionally]))
+
 dnl ===================================================================
 dnl Test whether build target is Release Build
 dnl ===================================================================
@@ -4385,8 +4384,13 @@ AC_SUBST(TARFILE_LOCATION)
 
 AC_MSG_CHECKING([whether we want to fetch tarballs])
 if test "$enable_fetch_external" != "no"; then
-    AC_MSG_RESULT([yes])
-    DO_FETCH_TARBALLS="YES"
+    if test "$with_all_tarballs" = "yes"; then
+        AC_MSG_RESULT(["yes, all of them"])
+        DO_FETCH_TARBALLS="ALL"
+    else
+        AC_MSG_RESULT(["yes, if we use them"])
+        DO_FETCH_TARBALLS="YES"
+    fi
 else
     AC_MSG_RESULT([no])
     DO_FETCH_TARBALLS="NO"
@@ -6570,12 +6574,10 @@ else
         AC_PATH_PROG(SYSTEM_UCPP, ucpp)
     else
         AC_MSG_RESULT([internal])
-        UCPP_TARBALL="0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz"
         BUILD_TYPE="$BUILD_TYPE UCPP"
     fi
 fi
 AC_SUBST(SYSTEM_UCPP)
-AC_SUBST(UCPP_TARBALL)
 
 dnl ===================================================================
 dnl Check for epm (not needed for Windows)
@@ -6591,7 +6593,6 @@ if test "$enable_epm" = "yes"; then
         fi
         if test "$EPM" = "no" -o "$EPM" = "internal"; then
             echo "EPM will be built."
-            EPM_TARBALL="3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz"
             BUILD_TYPE="$BUILD_TYPE EPM"
         else
             # Gentoo has some epm which is something different...
@@ -6620,7 +6621,6 @@ if test "$enable_epm" = "yes"; then
             else
                 AC_MSG_RESULT([too old. epm >= 3.7 is required.])
                 echo "EPM will be built."
-                EPM_TARBALL="3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz"
                 BUILD_TYPE="$BUILD_TYPE EPM"
             fi
         fi
@@ -6708,7 +6708,6 @@ else
     EPM=NO
 fi
 AC_SUBST(EPM)
-AC_SUBST(EPM_TARBALL)
 
 dnl ===================================================================
 dnl We need winegcc when building MinGW build to be able to cross-build msi tools
@@ -6846,12 +6845,10 @@ else
     BUILD_TYPE="$BUILD_TYPE ZLIB"
     ZLIB_CFLAGS="-I${OUTDIR}/inc/external/zlib"
     ZLIB_LIBS="-L${OUTDIR}/lib -lz"
-    ZLIB_TARBALL="2ab442d169156f34c379c968f3f482dd-zlib-1.2.7.tar.bz2"
 fi
 AC_SUBST(ZLIB_CFLAGS)
 AC_SUBST(ZLIB_LIBS)
 AC_SUBST(SYSTEM_ZLIB)
-AC_SUBST(ZLIB_TARBALL)
 
 dnl ===================================================================
 dnl Check for system jpeg
@@ -6879,11 +6876,9 @@ if test "$with_system_jpeg" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_JPEG=NO
-    JPEG_TARBALL="a2c10c04f396a9ce72894beb18b4e1f9-jpeg-8c.tar.gz"
     BUILD_TYPE="$BUILD_TYPE JPEG"
 fi
 AC_SUBST(SYSTEM_JPEG)
-AC_SUBST(JPEG_TARBALL)
 AC_SUBST([MINGW_JPEG_DLL])
 
 dnl ===================================================================
@@ -6912,13 +6907,11 @@ if test "$with_system_clucene" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_CLUCENE=NO
-    CLUCENE_TARBALL=48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
     BUILD_TYPE="$BUILD_TYPE CLUCENE"
 fi
 AC_SUBST(SYSTEM_CLUCENE)
 AC_SUBST(CLUCENE_CFLAGS)
 AC_SUBST(CLUCENE_LIBS)
-AC_SUBST(CLUCENE_TARBALL)
 
 dnl ===================================================================
 dnl Check for system expat
@@ -6937,11 +6930,7 @@ else
     SYSTEM_EXPAT=NO
     BUILD_TYPE="$BUILD_TYPE EXPAT"
 fi
-if test "$with_system_expat" != "yes" -o "$with_system_expat_for_build" != "yes"; then
-    EXPAT_TARBALL="dd7dab7a5fea97d2a6a43f511449b7cd-expat-2.1.0.tar.gz"
-fi
 AC_SUBST(SYSTEM_EXPAT)
-AC_SUBST(EXPAT_TARBALL)
 AC_SUBST([MINGW_EXPAT_DLL])
 
 dnl ===================================================================
@@ -6959,12 +6948,10 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBCDR=NO
     BUILD_TYPE="$BUILD_TYPE CDR"
-    CDR_TARBALL=3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBCDR)
 AC_SUBST(CDR_CFLAGS)
 AC_SUBST(CDR_LIBS)
-AC_SUBST(CDR_TARBALL)
 
 dnl ===================================================================
 dnl Check for system libmspub
@@ -6981,12 +6968,10 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBMSPUB=NO
     BUILD_TYPE="$BUILD_TYPE MSPUB"
-    MSPUB_TARBALL=b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBMSPUB)
 AC_SUBST(MSPUB_CFLAGS)
 AC_SUBST(MSPUB_LIBS)
-AC_SUBST(MSPUB_TARBALL)
 
 dnl ===================================================================
 dnl Check for system libvisio
@@ -7003,12 +6988,10 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBVISIO=NO
     BUILD_TYPE="$BUILD_TYPE VISIO"
-    VISIO_TARBALL=1e961f0112e5986105749640c2b9bc41-libvisio-0.0.21.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBVISIO)
 AC_SUBST(VISIO_CFLAGS)
 AC_SUBST(VISIO_LIBS)
-AC_SUBST(VISIO_TARBALL)
 
 dnl ===================================================================
 dnl Check for system libcmis
@@ -7022,12 +7005,10 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBCMIS=NO
     BUILD_TYPE="$BUILD_TYPE CMIS"
-    CMIS_TARBALL=b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz
 fi
 AC_SUBST(SYSTEM_LIBCMIS)
 AC_SUBST(CMIS_CFLAGS)
 AC_SUBST(CMIS_LIBS)
-AC_SUBST(CMIS_TARBALL)
 
 
 dnl ===================================================================
@@ -7045,13 +7026,11 @@ else
     SYSTEM_LIBWPD=NO
     WPD_CFLAGS="-I${OUTDIR}/inc/external"
     WPD_LIBS="-L${OUTDIR}/lib -lwpdlib"
-    WPD_TARBALL=e7f84e3199dfee9122949448cab3823f-libwpd-0.9.6.tar.bz2
     BUILD_TYPE="$BUILD_TYPE WPD"
 fi
 AC_SUBST(SYSTEM_LIBWPD)
 AC_SUBST(WPD_CFLAGS)
 AC_SUBST(WPD_LIBS)
-AC_SUBST(WPD_TARBALL)
 
 dnl ===================================================================
 dnl Check for system lcms2
@@ -7070,13 +7049,11 @@ else
     if test "$GCC" = "yes"; then
         LCMS2_CFLAGS="${LCMS2_CFLAGS} -Wno-long-long"
     fi
-    LCMS2_TARBALL="861ef15fa0bc018f9ddc932c4ad8b6dd-lcms2-2.4.tar.gz"
     BUILD_TYPE="$BUILD_TYPE LCMS2"
 fi
 AC_SUBST(SYSTEM_LCMS2)
 AC_SUBST(LCMS2_CFLAGS)
 AC_SUBST(LCMS2_LIBS)
-AC_SUBST(LCMS2_TARBALL)
 AC_SUBST([MINGW_LCMS2_DLL])
 
 dnl ===================================================================
@@ -7093,13 +7070,9 @@ else
     SYSTEM_CPPUNIT=NO
     BUILD_TYPE="$BUILD_TYPE CPPUNIT"
 fi
-if test "$with_system_cppunit" != "yes" -o "$with_system_cppunit_for_build" != "yes"; then
-    CPPUNIT_TARBALL="fa9aa839145cdf860bf596532bb8af97-cppunit-1.13.1.tar.gz"
-fi
 AC_SUBST(SYSTEM_CPPUNIT)
 AC_SUBST(CPPUNIT_CFLAGS)
 AC_SUBST(CPPUNIT_LIBS)
-AC_SUBST(CPPUNIT_TARBALL)
 
 dnl ===================================================================
 dnl Check whether freetype is available
@@ -7132,13 +7105,11 @@ else
     SYSTEM_LIBWPS=NO
     WPS_CFLAGS="-I${OUTDIR}/inc/external"
     WPS_LIBS="-L${OUTDIR}/lib -lwpslib"
-    WPS_TARBALL=d197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2
     BUILD_TYPE="$BUILD_TYPE WPS"
 fi
 AC_SUBST(SYSTEM_LIBWPS)
 AC_SUBST(WPS_CFLAGS)
 AC_SUBST(WPS_LIBS)
-AC_SUBST(WPS_TARBALL)
 
 dnl ===================================================================
 dnl Check for system libwpg
@@ -7155,13 +7126,11 @@ else
     SYSTEM_LIBWPG=NO
     WPG_CFLAGS="-I${OUTDIR}/inc/external"
     WPG_LIBS="-L${OUTDIR}/lib -lwpglib"
-    WPG_TARBALL=9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
     BUILD_TYPE="$BUILD_TYPE WPG"
 fi
 AC_SUBST(SYSTEM_LIBWPG)
 AC_SUBST(WPG_CFLAGS)
 AC_SUBST(WPG_LIBS)
-AC_SUBST(WPG_TARBALL)
 
 dnl ===================================================================
 dnl Check whether freetype2 supports emboldening
@@ -7224,7 +7193,6 @@ if test "$with_system_libxml" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBXSLT=NO
-    LIBXSLT_TARBALL="e61d0364a30146aaa3001296f853b2b9-libxslt-1.1.26.tar.gz"
     BUILD_TYPE="$BUILD_TYPE LIBXSLT"
 
     if test "$cross_compiling" = "yes"; then
@@ -7244,7 +7212,6 @@ AC_SUBST(LIBEXSLT_CFLAGS)
 AC_SUBST(LIBEXSLT_LIBS)
 AC_SUBST(LIBXSLT_CFLAGS)
 AC_SUBST(LIBXSLT_LIBS)
-AC_SUBST(LIBXSLT_TARBALL)
 AC_SUBST(XSLTPROC)
 AC_SUBST([MINGW_LIBEXSLT_DLL])
 AC_SUBST([MINGW_LIBXSLT_DLL])
@@ -7282,13 +7249,11 @@ if test "$with_system_libxml" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBXML=NO
-    LIBXML_TARBALL="7740a8ec23878a2f50120e1faa2730f2-libxml2-2.7.6.tar.gz"
     BUILD_TYPE="$BUILD_TYPE LIBXML2"
 fi
 AC_SUBST(SYSTEM_LIBXML)
 AC_SUBST(LIBXML_CFLAGS)
 AC_SUBST(LIBXML_LIBS)
-AC_SUBST(LIBXML_TARBALL)
 AC_SUBST(XMLLINT)
 AC_SUBST([MINGW_LIBXML_DLL])
 AC_SUBST([MINGW_ZLIB_DLL])
@@ -7474,7 +7439,6 @@ internal)
     PYTHON_VERSION_MAJOR=3
     PYTHON_VERSION_MINOR=3
     PYTHON_VERSION=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.0
-    PYTHON_TARBALL="b3b2524f72409d919a4137826a870a8f-Python-3.3.0.tar.bz2"
     BUILD_TYPE="$BUILD_TYPE PYTHON"
     # Embedded Python dies without Home set
     if test "$HOME" = ""; then
@@ -7507,7 +7471,6 @@ fi
 AC_SUBST(SYSTEM_PYTHON)
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)
-AC_SUBST(PYTHON_TARBALL)
 AC_SUBST(PYTHON_VERSION)
 AC_SUBST(PYTHON_VERSION_MAJOR)
 AC_SUBST(PYTHON_VERSION_MINOR)
@@ -7622,14 +7585,12 @@ int main(int argc, char **argv) {
         else
             AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
         fi
-        MYSQLCPPCONN_TARBALL="0981bda6548a8c8233ffce2b6e4b2a23-mysql-connector-c++-1.1.0.tar.gz"
         BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
         SYSTEM_MYSQL_CPPCONN=NO
     fi
     AC_LANG_POP([C++])
 fi
 AC_SUBST(SYSTEM_MYSQL_CPPCONN)
-AC_SUBST(MYSQLCPPCONN_TARBALL)
 
 dnl ===================================================================
 dnl Check for system hsqldb
@@ -7675,7 +7636,6 @@ if test "$with_system_hsqldb" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_HSQLDB=NO
-    HSQLDB_TARBALL="17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip"
     BUILD_TYPE="$BUILD_TYPE HSQLDB"
     AC_MSG_CHECKING([whether hsqldb should be built with JDBC 4.1])
     javanumver=`$JAVAINTERPRETER -version 2>&1 | $AWK -v num=true -f $SRC_ROOT/solenv/bin/getcompver.awk`
@@ -7688,7 +7648,6 @@ else
 fi
 AC_SUBST(SYSTEM_HSQLDB)
 AC_SUBST(HSQLDB_JAR)
-AC_SUBST(HSQLDB_TARBALL)
 AC_SUBST([HSQLDB_USE_JDBC_4_1])
 fi
 
@@ -7795,7 +7754,6 @@ if test "x$enable_postgresql_sdbc" != "xno"; then
             POSTGRESQL_LIB=""
             POSTGRESQL_INC="%OVERRIDE_ME%"
             BUILD_TYPE="$BUILD_TYPE POSTGRESQL"
-        POSTGRESQL_TARBALL="c0b4799ea9850eae3ead14f0a60e9418-postgresql-9.2.1.tar.bz2"
         fi
     fi
     if test "${SYSTEM_POSTGRESQL}" = "YES"; then
@@ -7820,7 +7778,6 @@ AC_SUBST(BUILD_POSTGRESQL_SDBC)
 AC_SUBST(SYSTEM_POSTGRESQL)
 AC_SUBST(POSTGRESQL_INC)
 AC_SUBST(POSTGRESQL_LIB)
-AC_SUBST(POSTGRESQL_TARBALL)
 
 dnl ===================================================================
 dnl Check for system curl
@@ -7890,11 +7847,9 @@ if test "$with_system_curl" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_CURL=NO
-    CURL_TARBALL="3fa4d5236f2a36ca5c3af6715e837691-curl-7.26.0.tar.gz"
     BUILD_TYPE="$BUILD_TYPE CURL"
 fi
 AC_SUBST(SYSTEM_CURL)
-AC_SUBST(CURL_TARBALL)
 AC_SUBST(CURL_CFLAGS)
 AC_SUBST(CURL_LIBS)
 AC_SUBST([MINGW_CURL_DLL])
@@ -7953,12 +7908,8 @@ else
     BUILD_TYPE="$BUILD_TYPE BOOST"
     SYSTEM_BOOST=NO
 fi
-if test "$with_system_boost" != "yes" -o "$with_system_boost_for_build" != "yes"; then
-    BOOST_TARBALL=f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
-fi
 AC_SUBST([MINGW_BOOST_DATE_TIME_DLL])
 AC_SUBST(SYSTEM_BOOST)
-AC_SUBST(BOOST_TARBALL)
 
 dnl ===================================================================
 dnl Check for system mdds
@@ -7991,7 +7942,6 @@ if test "$with_system_mdds" = "yes"; then
     AC_LANG_POP([C++])
 else
     AC_MSG_RESULT([internal])
-    MDDS_TARBALL=9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2
     BUILD_TYPE="$BUILD_TYPE MDDS"
     SYSTEM_MDDS=NO
 
@@ -8003,7 +7953,6 @@ else
     AC_MSG_RESULT([boost::unordered_map])
 fi
 AC_SUBST(SYSTEM_MDDS)
-AC_SUBST(MDDS_TARBALL)
 AC_SUBST([MDDS_CPPFLAGS])
 
 dnl ===================================================================
@@ -8019,12 +7968,10 @@ if test "$with_system_vigra" = "yes"; then
     AC_LANG_POP([C++])
 else
     AC_MSG_RESULT([internal])
-    VIGRA_TARBALL=ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz
     BUILD_TYPE="$BUILD_TYPE VIGRA"
     SYSTEM_VIGRA=NO
 fi
 AC_SUBST(SYSTEM_VIGRA)
-AC_SUBST(VIGRA_TARBALL)
 
 dnl ===================================================================
 dnl Check for system odbc
@@ -8075,12 +8022,10 @@ if test "$with_system_openldap" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_OPENLDAP=NO
-    OPENLDAP_TARBALL="804c6cb5698db30b75ad0ff1c25baefd-openldap-2.4.31.tgz"
     BUILD_TYPE="$BUILD_TYPE OPENLDAP"
 fi
 fi
 AC_SUBST(SYSTEM_OPENLDAP)
-AC_SUBST(OPENLDAP_TARBALL)
 
 dnl ===================================================================
 dnl Check for system mozilla
@@ -8142,7 +8087,6 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_MOZILLA=NO
     BUILD_TYPE="$BUILD_TYPE MOZ"
-    MOZ_TARBALL=a169ab152209200a7bad29a275cb0333-seamonkey-1.1.14.source.tar.gz
     MOZILLA_VERSION=1.1.14
     AC_SUBST(MOZILLA_VERSION)
 
@@ -8230,19 +8174,7 @@ else
             fi
         fi
     else
-        AC_MSG_CHECKING([which pre-built Mozilla module in $TARFILE_LOCATION])
-        MOZ_ZIP_INC="${OS}${COM}${CPU}inc.zip"
-        MOZ_ZIP_LIB="${OS}${COM}${CPU}lib.zip"
-        MOZ_ZIP_RUNTIME="${OS}${COM}${CPU}runtime.zip"
         PREBUILD_MOZAB="YES"
-        if test -e "$TARFILE_LOCATION/${OS}${COM}${CPU}inc.zip" -a \
-                -e "$TARFILE_LOCATION/${OS}${COM}${CPU}lib.zip" -a \
-                -e "$TARFILE_LOCATION/${OS}${COM}${CPU}runtime.zip"; then
-            AC_MSG_RESULT([Found])
-            MOZ_ZIP_INC=
-            MOZ_ZIP_LIB=
-            MOZ_ZIP_RUNTIME=
-        fi
         if test "$_os" = "WINNT"; then
             AC_MSG_CHECKING([for MSVC 2005 runtime needed for prebuilt Mozilla])
             if test -e "$SRC_ROOT/external/msvcp80/Microsoft.VC80.CRT.manifest" -a \
@@ -8287,18 +8219,8 @@ AC_SUBST(MOZ_FLAVOUR)
 AC_SUBST(MOZ_INC)
 AC_SUBST(MOZ_LIB)
 AC_SUBST(MOZ_LIB_XPCOM)
-AC_SUBST(MOZ_TARBALL)
 AC_SUBST(MSVC80_DLL_DIR)
 AC_SUBST(MSVC80_MNFST)
-AC_SUBST(MOZ_ZIP_INC)
-AC_SUBST(MOZ_ZIP_LIB)
-AC_SUBST(MOZ_ZIP_RUNTIME)
-
-# libxmlsec is mandatory
-if test $_os != Android -a $_os != iOS ; then
-    LIBXMLSEC_TARBALL="1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz"
-fi
-AC_SUBST(LIBXMLSEC_TARBALL)
 
 dnl ===================================================================
 dnl Check for system NSS
@@ -8317,7 +8239,6 @@ if test "$with_system_nss" = "yes"; then
     libo_MINGW_CHECK_DLL([SSL3], [ssl3])
 else
     SYSTEM_NSS="NO"
-    NSS_TARBALL="a0a861f539f0e7a91d05e6b9457e4db1-nss-3.13.5-with-nspr-4.9.1.tar.gz"
     BUILD_TYPE="$BUILD_TYPE NSS"
     AC_MSG_RESULT([internal])
     if test "$build_os" = "cygwin"; then
@@ -8347,7 +8268,6 @@ fi # system nss
 AC_SUBST(SYSTEM_NSS)
 AC_SUBST(NSS_CFLAGS)
 AC_SUBST(NSS_LIBS)
-AC_SUBST(NSS_TARBALL)
 AC_SUBST([MINGW_SMIME3_DLL])
 
 dnl ===================================================================
@@ -8508,22 +8428,8 @@ You can use --with-system-icu-for-build=force to use it anyway.])
 else
     AC_MSG_RESULT([internal])
     SYSTEM_ICU="NO"
-
     BUILD_TYPE="$BUILD_TYPE ICU"
 fi
-if test "$with_system_icu" != "yes" -o "$with_system_icu_for_build" != "yes"; then
-    ICU_TARBALL="7c53f83e0327343f4060c0eb83842daf-icu4c-49_1_1-src.tgz"
-
-    # Save space when using a bundled ICU by leaving out unneeded parts of the ICU data. Generated by
-    # the interactive web tool at http://apps.icu-project.org/datacustom/ICUData49.html by dropping
-    # the "Charset Mapping Tables". Probably we could carefully cherry-pick other items in the data to
-    # be dropped, too. A bit tedious using that web tool, though.
-
-    # If you do that, upload a new subset data zip file with just the MD5 part of the name changed
-    # appropriately. Let's not bother trying to list what stuff has been removed in the file name.
-    # Describe it in the comment above instead.
-    ICU_DATA_SUBSET_ZIP=fc188d2ed5c2cbcf7a021b34b9f88478-icudt49l-subset.zip
-fi
 AC_SUBST(SYSTEM_ICU)
 AC_SUBST(SYSTEM_GENBRK)
 AC_SUBST(SYSTEM_GENCCODE)
@@ -8535,8 +8441,6 @@ AC_SUBST(ICU_RECLASSIFIED_CLOSE_PARENTHESIS)
 AC_SUBST([ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER])
 AC_SUBST([ICU_RECLASSIFIED_HEBREW_LETTER])
 AC_SUBST(ICU_RECLASSIFIED_PREPEND_SET_EMPTY)
-AC_SUBST(ICU_TARBALL)
-AC_SUBST(ICU_DATA_SUBSET_ZIP)
 AC_SUBST([MINGW_ICUDATA_DLL])
 AC_SUBST([MINGW_ICUI18N_DLL])
 AC_SUBST([MINGW_ICUUC_DLL])
@@ -8559,7 +8463,6 @@ if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "$enable_graphite" = "" -o
         AC_MSG_RESULT([internal])
         SYSTEM_GRAPHITE=NO
         BUILD_TYPE="$BUILD_TYPE GRAPHITE"
-        GRAPHITE_TARBALL=f5ef3f7f10fa8c3542c6a085a233080b-graphite2-1.2.0.tgz
     fi
 else
     AC_MSG_RESULT([no])
@@ -8568,7 +8471,6 @@ AC_SUBST(ENABLE_GRAPHITE)
 AC_SUBST(SYSTEM_GRAPHITE)
 AC_SUBST(GRAPHITE_CFLAGS)
 AC_SUBST(GRAPHITE_LIBS)
-AC_SUBST(GRAPHITE_TARBALL)
 AC_SUBST([MINGW_GRAPHITE2_DLL])
 
 dnl ===================================================================
@@ -8765,13 +8667,11 @@ else
     AC_MSG_RESULT([internal])
     SYSTEM_NEON=NO
     BUILD_TYPE="$BUILD_TYPE NEON"
-    NEON_TARBALL=ff369e69ef0f0143beb5626164e87ae2-neon-0.29.5.tar.gz
     NEON_VERSION=0295
 fi
 AC_SUBST(SYSTEM_NEON)
 AC_SUBST(NEON_LIBS)
 AC_SUBST(NEON_CFLAGS)
-AC_SUBST(NEON_TARBALL)
 AC_SUBST(NEON_VERSION)
 AC_SUBST([MINGW_GNUTLS_DLL])
 AC_SUBST([MINGW_NEON_DLL])
@@ -8815,13 +8715,11 @@ if test "$with_system_openssl" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_OPENSSL=NO
-    OPENSSL_TARBALL="51a40a81b3b7abe8a5c33670bd3da0ce-openssl-0.9.8v.tar.gz"
     BUILD_TYPE="$BUILD_TYPE OPENSSL"
 fi
 AC_SUBST(SYSTEM_OPENSSL)
 AC_SUBST(OPENSSL_CFLAGS)
 AC_SUBST(OPENSSL_LIBS)
-AC_SUBST(OPENSSL_TARBALL)
 AC_SUBST([MINGW_SSL_DLL])
 AC_SUBST([MINGW_CRYPTO_DLL])
 
@@ -8840,18 +8738,12 @@ if test "$with_system_redland" = "yes"; then
     libo_MINGW_TRY_DLL([SQLITE3], [libsqlite3])
 else
     AC_MSG_RESULT([internal])
-    RAPTOR_TARBALL="284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz"
-    RASQAL_TARBALL="fca8706f2c4619e2fa3f8f42f8fc1e9d-rasqal-0.9.16.tar.gz"
-    REDLAND_TARBALL="ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz"
     BUILD_TYPE="$BUILD_TYPE REDLAND"
     SYSTEM_REDLAND=NO
 fi
 AC_SUBST(SYSTEM_REDLAND)
-AC_SUBST(RAPTOR_TARBALL)
-AC_SUBST(RASQAL_TARBALL)
 AC_SUBST(REDLAND_CFLAGS)
 AC_SUBST(REDLAND_LIBS)
-AC_SUBST(REDLAND_TARBALL)
 AC_SUBST([MINGW_RAPTOR_DLL])
 AC_SUBST([MINGW_RASQAL_DLL])
 AC_SUBST([MINGW_REDLAND_DLL])
@@ -8867,7 +8759,6 @@ if test "$with_system_orcus" = "yes"; then
     PKG_CHECK_MODULES(ORCUS, liborcus-0.2 >= 0.1.0)
 else
     AC_MSG_RESULT([internal])
-    ORCUS_TARBALL=46d9f4cf8b145c21ce1056e116d2ce71-liborcus_0.1.0.tar.bz2
     BUILD_TYPE="$BUILD_TYPE ORCUS"
     SYSTEM_LIBORCUS=NO
 
@@ -8899,7 +8790,6 @@ AC_SUBST([BOOST_SYSTEM_LIB])
 AC_SUBST(SYSTEM_LIBORCUS)
 AC_SUBST(ORCUS_CFLAGS)
 AC_SUBST(ORCUS_LIBS)
-AC_SUBST(ORCUS_TARBALL)
 
 dnl ===================================================================
 dnl Check for system hunspell
@@ -8927,11 +8817,9 @@ else
     SYSTEM_HUNSPELL=NO
     HUNSPELL_CFLAGS="-I${WORKDIR}/UnpackedTarball/hunspell/src/hunspell"
     HUNSPELL_LIBS="-L${OUTDIR}/lib -lhunspell"
-    HUNSPELL_TARBALL="3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz"
     BUILD_TYPE="$BUILD_TYPE HUNSPELL"
 fi
 AC_SUBST(SYSTEM_HUNSPELL)
-AC_SUBST(HUNSPELL_TARBALL)
 AC_SUBST(HUNSPELL_CFLAGS)
 AC_SUBST(HUNSPELL_LIBS)
 AC_SUBST([MINGW_HUNSPELL_DLL])
@@ -8962,12 +8850,10 @@ if test "$with_system_altlinuxhyph" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_HYPH=NO
-    HYPHEN_TARBALL="a2f6010987e1c601274ab5d63b72c944-hyphen-2.8.4.tar.gz"
     BUILD_TYPE="$BUILD_TYPE HYPHEN"
 fi
 AC_SUBST(SYSTEM_HYPH)
 AC_SUBST(HYPHEN_LIB)
-AC_SUBST(HYPHEN_TARBALL)
 AC_SUBST([MINGW_HYPHEN_DLL])
 
 dnl ===================================================================
@@ -8997,12 +8883,10 @@ if test "$with_system_mythes" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_MYTHES=NO
-    MYTHES_TARBALL="46e92b68e31e858512b680b3b61dc4c1-mythes-1.2.3.tar.gz"
     BUILD_TYPE="$BUILD_TYPE MYTHES"
 fi
 AC_SUBST(SYSTEM_MYTHES)
 AC_SUBST(MYTHES_CFLAGS)
-AC_SUBST(MYTHES_TARBALL)
 AC_SUBST(MYTHES_LIBS)
 AC_SUBST([MINGW_MYTHES_DLL])
 
@@ -9026,11 +8910,9 @@ if test "$with_system_lpsolve" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LPSOLVE=NO
-    LPSOLVE_TARBALL="26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz"
     BUILD_TYPE="$BUILD_TYPE LPSOLVE"
 fi
 AC_SUBST(SYSTEM_LPSOLVE)
-AC_SUBST(LPSOLVE_TARBALL)
 AC_SUBST([MINGW_LPSOLVE_DLL])
 
 dnl ===================================================================
@@ -9045,14 +8927,12 @@ if test "$with_system_libexttextcat" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBEXTTEXTCAT=NO
-    LIBEXTTEXTCAT_TARBALL="dc3d21a3921931096d6e80f6701f6763-libexttextcat-3.4.0.tar.bz2"
     BUILD_TYPE="$BUILD_TYPE LIBEXTTEXTCAT"
 fi
 AC_SUBST(SYSTEM_LIBEXTTEXTCAT)
 AC_SUBST(SYSTEM_LIBEXTTEXTCAT_DATA)
 AC_SUBST(LIBEXTTEXTCAT_CFLAGS)
 AC_SUBST(LIBEXTTEXTCAT_LIBS)
-AC_SUBST(LIBEXTTEXTCAT_TARBALL)
 
 dnl ***************************************
 dnl testing libc version for Linux...
@@ -9885,7 +9765,6 @@ if test "x$enable_pdfimport" != "xno"; then
   else
       AC_MSG_RESULT([internal])
       SYSTEM_POPPLER=NO
-      XPDF_TARBALL="599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz"
       BUILD_TYPE="$BUILD_TYPE XPDF"
   fi
 else
@@ -9897,13 +9776,11 @@ AC_SUBST(ENABLE_PDFIMPORT)
 AC_SUBST(SYSTEM_POPPLER)
 AC_SUBST(POPPLER_CFLAGS)
 AC_SUBST(POPPLER_LIBS)
-AC_SUBST(XPDF_TARBALL)
 
 AC_MSG_CHECKING([whether to build the Wiki Publisher extension])
 if test "x$enable_ext_wiki_publisher" = "xyes" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
   AC_MSG_RESULT([yes])
   ENABLE_MEDIAWIKI=YES
-  XSLTML_TARBALL=a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
   BUILD_TYPE="$BUILD_TYPE XSLTML"
   if test  "x$with_java" = "xno"; then
     AC_MSG_ERROR([Wiki Publisher requires Java! Enable Java if you want to build it.])
@@ -9914,7 +9791,6 @@ else
   SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MEDIAWIKI"
 fi
 AC_SUBST(ENABLE_MEDIAWIKI)
-AC_SUBST(XSLTML_TARBALL)
 
 if test "$ENABLE_MEDIAWIKI" = "YES"; then
     AC_MSG_CHECKING([which Servlet API Jar to use])
@@ -9930,7 +9806,6 @@ if test "$ENABLE_MEDIAWIKI" = "YES"; then
         AC_MSG_RESULT([internal])
         SYSTEM_SERVLETAPI=NO
         BUILD_TYPE="$BUILD_TYPE TOMCAT"
-        TOMCAT_TARBALL="2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz"
     fi
 fi
 AC_SUBST(SYSTEM_SERVLETAPI)
@@ -10104,17 +9979,6 @@ if test "$enable_ext_report_builder" != "no" -a "x$enable_extension_integration"
         AC_MSG_RESULT([internal])
         SYSTEM_JFREEREPORT=NO
         BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
-        JFREEREPORT_SAC_TARBALL="39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip"
-        JFREEREPORT_LIBBASE_TARBALL="eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip"
-        JFREEREPORT_FLUTE_TARBALL="d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip"
-        JFREEREPORT_LIBLOADER_TARBALL="97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip"
-        JFREEREPORT_LIBXML_TARBALL="ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip"
-        JFREEREPORT_LIBFORMULA_TARBALL="3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip"
-        JFREEREPORT_LIBFONTS_TARBALL="3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip"
-        JFREEREPORT_LIBREPOSITORY_TARBALL="8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip"
-        JFREEREPORT_LIBSERIALIZER_TARBALL="f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip"
-        JFREEREPORT_FLOW_ENGINE_TARBALL="ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip"
-        JFREEREPORT_LIBLAYOUT_TARBALL="db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip"
     fi
 else
     AC_MSG_RESULT([no])
@@ -10125,17 +9989,6 @@ fi
 AC_SUBST(ENABLE_REPORTBUILDER)
 AC_SUBST(SYSTEM_JFREEREPORT)
 AC_SUBST(SAC_JAR)
-AC_SUBST(JFREEREPORT_SAC_TARBALL)
-AC_SUBST(JFREEREPORT_LIBBASE_TARBALL)
-AC_SUBST(JFREEREPORT_FLUTE_TARBALL)
-AC_SUBST(JFREEREPORT_LIBLOADER_TARBALL)
-AC_SUBST(JFREEREPORT_LIBXML_TARBALL)
-AC_SUBST(JFREEREPORT_LIBFORMULA_TARBALL)
-AC_SUBST(JFREEREPORT_LIBFONTS_TARBALL)
-AC_SUBST(JFREEREPORT_LIBREPOSITORY_TARBALL)
-AC_SUBST(JFREEREPORT_LIBSERIALIZER_TARBALL)
-AC_SUBST(JFREEREPORT_FLOW_ENGINE_TARBALL)
-AC_SUBST(JFREEREPORT_LIBLAYOUT_TARBALL)
 AC_SUBST(LIBXML_JAR)
 AC_SUBST(FLUTE_JAR)
 AC_SUBST(JFREEREPORT_JAR)
@@ -10219,24 +10072,14 @@ if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
     else
         AC_MSG_RESULT([internal])
         SYSTEM_APACHE_COMMONS=NO
-        APACHE_COMMONS_CODEC_TARBALL=af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
-        APACHE_COMMONS_HTTPCLIENT_TARBALL=2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
-        APACHE_COMMONS_LANG_TARBALL=2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
-        APACHE_COMMONS_LOGGING_TARBALL=3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz
-        TOMCAT_TARBALL="2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz"
         BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS TOMCAT"
     fi
 fi
-AC_SUBST(APACHE_COMMONS_CODEC_TARBALL)
-AC_SUBST(APACHE_COMMONS_HTTPCLIENT_TARBALL)
-AC_SUBST(APACHE_COMMONS_LANG_TARBALL)
-AC_SUBST(APACHE_COMMONS_LOGGING_TARBALL)
 AC_SUBST(SYSTEM_APACHE_COMMONS)
 AC_SUBST(COMMONS_CODEC_JAR)
 AC_SUBST(COMMONS_LANG_JAR)
 AC_SUBST(COMMONS_HTTPCLIENT_JAR)
 AC_SUBST(COMMONS_LOGGING_JAR)
-AC_SUBST(TOMCAT_TARBALL)
 
 # scripting provider for BeanShell?
 AC_MSG_CHECKING([whether to build support for scripts in BeanShell])
@@ -10259,7 +10102,6 @@ if test "${enable_scripting_beanshell}" != "no" -a "x$with_java" != "xno"; then
    else
        AC_MSG_RESULT([internal])
        SYSTEM_BSH=NO
-       BSH_TARBALL="ea570af93c284aa9e5621cd563f54f4d-bsh-2.0b1-src.tar.gz"
        BUILD_TYPE="$BUILD_TYPE BSH"
    fi
 else
@@ -10270,7 +10112,6 @@ fi
 AC_SUBST(ENABLE_SCRIPTING_BEANSHELL)
 AC_SUBST(SYSTEM_BSH)
 AC_SUBST(BSH_JAR)
-AC_SUBST(BSH_TARBALL)
 
 # scripting provider for JavaScript?
 AC_MSG_CHECKING([whether to build support for scripts in JavaScript])
@@ -10293,8 +10134,6 @@ if test "${enable_scripting_javascript}" != "no" -a "x$with_java" != "xno"; then
    else
        AC_MSG_RESULT([internal])
        SYSTEM_RHINO=NO
-       RHINO_TARBALL="798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip"
-       SWING_TARBALL="35c94d2df8893241173de1d16b6034c0-swingExSrc.zip"
        BUILD_TYPE="$BUILD_TYPE RHINO"
    fi
 else
@@ -10305,8 +10144,6 @@ fi
 AC_SUBST(ENABLE_SCRIPTING_JAVASCRIPT)
 AC_SUBST(SYSTEM_RHINO)
 AC_SUBST(RHINO_JAR)
-AC_SUBST(RHINO_TARBALL)
-AC_SUBST(SWING_TARBALL)
 
 dnl Scripting provider for Python extension?
 dnl We always provide this unless we have disabled Python completely
@@ -11002,12 +10839,10 @@ AC_MSG_CHECKING([for ConvertTextToNumber extension integration])
 if test "x$enable_ext_ct2n" = "xyes" -a "x$enable_extension_integration" != "xno"; then
     BUILD_TYPE="$BUILD_TYPE CT2N"
     SCPDEFS="$SCPDEFS -DWITH_EXTENSION_CT2N"
-    CT2N_TARBALL="451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt"
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])
 fi
-AC_SUBST([CT2N_TARBALL])
 
 dnl ===================================================================
 dnl Test whether to include Numbertext extension
@@ -11088,12 +10923,10 @@ AC_MSG_CHECKING([for LanguageTool extension integration])
 if test "x$enable_ext_languagetool" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
     BUILD_TYPE="$BUILD_TYPE LANGUAGETOOL"
     SCPDEFS="$SCPDEFS -DWITH_EXTENSION_LANGUAGETOOL"
-    LANGUAGETOOL_TARBALL="b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2"
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])
 fi
-AC_SUBST(LANGUAGETOOL_TARBALL)
 
 dnl ===================================================================
 dnl Test whether to include oooblogger extension
@@ -11170,38 +11003,11 @@ if test "$with_fonts" != "no"; then
     AC_MSG_RESULT([yes])
     WITH_FONTS=YES
     BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
-    FONT_DEJAVU_TARBALL="f872f4ac066433d8ff92f5e316b36ff9-dejavu-fonts-ttf-2.33.zip"
-    FONT_GENTIUM_TARBALL="35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip"
-    FONT_LIBERATION_NARROW_TARBALL="0be45d54cc5e1c2e3102e32b8c190346-liberation-fonts-ttf-1.07.1.tar.gz"
-    FONT_LIBERATION_TARBALL="5c781723a0d9ed6188960defba8e91cf-liberation-fonts-ttf-2.00.1.tar.gz"
-    FONT_LINLIBERTINEG_TARBALL="e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip"
-    FONT_OPENSANS_TARBALL="7a15edea7d415ac5150ea403e27401fd-open-sans-font-ttf-1.10.tar.gz"
-    FONT_PTSERIF_TARBALL="c3c1a8ba7452950636e871d25020ce0d-pt-serif-font-1.0000W.tar.gz"
-    FONT_SOURCECODE_TARBALL="0279a21fab6f245e85a6f85fea54f511-source-code-font-1.009.tar.gz"
-    FONT_SOURCESANS_TARBALL="1e9ddfe25ac9577da709d7b2ea36f939-source-sans-font-1.036.tar.gz"
 else
     AC_MSG_RESULT([no])
     WITH_FONTS=NO
     SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
-    FONT_DEJAVU_TARBALL=
-    FONT_GENTIUM_TARBALL=
-    FONT_LIBERATION_NARROW_TARBALL=
-    FONT_LIBERATION_TARBALL=
-    FONT_LINLIBERTINEG_TARBALL=
-    FONT_OPENSANS_TARBALL=
-    FONT_PTSERIF_TARBALL=
-    FONT_SOURCECODE_TARBALL=
-    FONT_SOURCESANS_TARBALL=
-fi
-AC_SUBST(FONT_DEJAVU_TARBALL)
-AC_SUBST(FONT_GENTIUM_TARBALL)
-AC_SUBST(FONT_LIBERATION_TARBALL)
-AC_SUBST(FONT_LINLIBERTINEG_TARBALL)
-AC_SUBST(FONT_LIBERATION_NARROW_TARBALL)
-AC_SUBST(FONT_OPENSANS_TARBALL)
-AC_SUBST(FONT_PTSERIF_TARBALL)
-AC_SUBST(FONT_SOURCECODE_TARBALL)
-AC_SUBST(FONT_SOURCESANS_TARBALL)
+fi
 AC_SUBST(WITH_FONTS)
 
 
@@ -11243,15 +11049,12 @@ AC_MSG_CHECKING([whether to include AFMs])
 if test "$with_afms" != "no"; then
     AC_MSG_RESULT([yes])
     BUILD_TYPE="$BUILD_TYPE AFMS"
-    AFMS_TARBALL="1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz"
 else
     AC_MSG_RESULT([no])
     WITHOUT_AFMS=YES
     SCPDEFS="$SCPDEFS -DWITHOUT_AFMS"
-    AFMS_TARBALL=
 fi
 AC_SUBST(WITHOUT_AFMS)
-AC_SUBST(AFMS_TARBALL)
 
 dnl ===================================================================
 dnl Test whether to include extra galleries
@@ -11487,8 +11290,6 @@ if test "$test_cairo" = "yes" ; then
         SYSTEM_CAIRO=NO
         AC_MSG_RESULT([no])
 
-        CAIRO_TARBALL="f101a9e88b783337b20b2e26dfd26d5f-cairo-1.10.2.tar.gz"
-        PIXMAN_TARBALL="c63f411b3ad147db2bcce1bf262a0e02-pixman-0.24.4.tar.bz2"
         BUILD_TYPE="$BUILD_TYPE CAIRO"
         SCPDEFS="$SCPDEFS -DNEED_CAIRO"
     fi
@@ -11497,8 +11298,6 @@ fi
 AC_SUBST(SYSTEM_CAIRO)
 AC_SUBST(CAIRO_CFLAGS)
 AC_SUBST(CAIRO_LIBS)
-AC_SUBST(CAIRO_TARBALL)
-AC_SUBST(PIXMAN_TARBALL)
 AC_SUBST([MINGW_CAIRO_DLL])
 AC_SUBST([MINGW_FONTCONFIG_DLL])
 AC_SUBST([MINGW_FREETYPE_DLL])
@@ -11523,7 +11322,6 @@ if test "$enable_liblangtag" = "yes" -o \( "$enable_liblangtag" = "" -a $_os !=
     else
         SYSTEM_LIBLANGTAG=NO
         AC_MSG_RESULT([no])
-        LIBLANGTAG_TARBALL="54e578c91b1b68e69c72be22adcb2195-liblangtag-0.4.0.tar.bz2"
         BUILD_TYPE="$BUILD_TYPE LIBLANGTAG"
     fi
 else
@@ -11534,7 +11332,6 @@ AC_SUBST(ENABLE_LIBLANGTAG)
 AC_SUBST(SYSTEM_LIBLANGTAG)
 AC_SUBST(LIBLANGTAG_CFLAGS)
 AC_SUBST(LIBLANGTAG_LIBS)
-AC_SUBST(LIBLANGTAG_TARBALL)
 AC_SUBST([MINGW_LIBLANGTAG_DLL])
 
 dnl ===================================================================
@@ -11564,11 +11361,9 @@ if test "$with_system_libpng" = yes; then
 else
     SYSTEM_LIBPNG=NO
     BUILD_TYPE="$BUILD_TYPE LIBPNG"
-    PNG_TARBALL=9e5d864bce8f06751bbd99962ecf4aad-libpng-1.5.10.tar.gz
     AC_MSG_RESULT([no])
 fi
 AC_SUBST(SYSTEM_LIBPNG)
-AC_SUBST(PNG_TARBALL)
 
 dnl ===================================================================
 dnl Check for runtime JVM search path
diff --git a/download.lst b/download.lst
new file mode 100644
index 0000000..98749d6
--- /dev/null
+++ b/download.lst
@@ -0,0 +1,86 @@
+export AFMS_TARBALL := 1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz
+export APACHE_COMMONS_CODEC_TARBALL := af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
+export APACHE_COMMONS_HTTPCLIENT_TARBALL := 2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
+export APACHE_COMMONS_LANG_TARBALL := 2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
+export APACHE_COMMONS_LOGGING_TARBALL := 3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz
+export BOOST_TARBALL := f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
+export BSH_TARBALL := ea570af93c284aa9e5621cd563f54f4d-bsh-2.0b1-src.tar.gz
+export CAIRO_TARBALL := f101a9e88b783337b20b2e26dfd26d5f-cairo-1.10.2.tar.gz
+export CDR_TARBALL := 3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2
+export CLUCENE_TARBALL := 48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
+export CMIS_TARBALL := b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz
+export CPPUNIT_TARBALL := fa9aa839145cdf860bf596532bb8af97-cppunit-1.13.1.tar.gz
+export CT2N_TARBALL := 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
+export CURL_TARBALL := 3fa4d5236f2a36ca5c3af6715e837691-curl-7.26.0.tar.gz
+export EPM_TARBALL := 3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz
+export EXPAT_TARBALL := dd7dab7a5fea97d2a6a43f511449b7cd-expat-2.1.0.tar.gz
+export FONTCONFIG_TARBALL := 77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
+export FONT_DEJAVU_TARBALL := f872f4ac066433d8ff92f5e316b36ff9-dejavu-fonts-ttf-2.33.zip
+export FONT_GENTIUM_TARBALL := 35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip
+export FONT_LIBERATION_NARROW_TARBALL := 0be45d54cc5e1c2e3102e32b8c190346-liberation-fonts-ttf-1.07.1.tar.gz
+export FONT_LIBERATION_TARBALL := 5c781723a0d9ed6188960defba8e91cf-liberation-fonts-ttf-2.00.1.tar.gz
+export FONT_LINLIBERTINEG_TARBALL := e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip
+export FONT_OPENSANS_TARBALL := 7a15edea7d415ac5150ea403e27401fd-open-sans-font-ttf-1.10.tar.gz
+export FONT_PTSERIF_TARBALL := c3c1a8ba7452950636e871d25020ce0d-pt-serif-font-1.0000W.tar.gz
+export FONT_SOURCECODE_TARBALL := 0279a21fab6f245e85a6f85fea54f511-source-code-font-1.009.tar.gz
+export FONT_SOURCESANS_TARBALL := 1e9ddfe25ac9577da709d7b2ea36f939-source-sans-font-1.036.tar.gz
+export FREETYPE_TARBALL := dbf2caca1d3afd410a29217a9809d397-freetype-2.4.8.tar.bz2
+export GRAPHITE_TARBALL := f5ef3f7f10fa8c3542c6a085a233080b-graphite2-1.2.0.tgz
+export HSQLDB_TARBALL := 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
+export HUNSPELL_TARBALL := 3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz
+export HYPHEN_TARBALL := a2f6010987e1c601274ab5d63b72c944-hyphen-2.8.4.tar.gz
+export ICU_DATA_SUBSET_ZIP := fc188d2ed5c2cbcf7a021b34b9f88478-icudt49l-subset.zip
+export ICU_TARBALL := 7c53f83e0327343f4060c0eb83842daf-icu4c-49_1_1-src.tgz
+export JFREEREPORT_FLOW_ENGINE_TARBALL := ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
+export JFREEREPORT_FLUTE_TARBALL := d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
+export JFREEREPORT_LIBBASE_TARBALL := eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
+export JFREEREPORT_LIBFONTS_TARBALL := 3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
+export JFREEREPORT_LIBFORMULA_TARBALL := 3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
+export JFREEREPORT_LIBLAYOUT_TARBALL := db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
+export JFREEREPORT_LIBLOADER_TARBALL := 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
+export JFREEREPORT_LIBREPOSITORY_TARBALL := 8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
+export JFREEREPORT_LIBSERIALIZER_TARBALL := f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
+export JFREEREPORT_LIBXML_TARBALL := ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
+export JFREEREPORT_SAC_TARBALL := 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
+export JPEG_TARBALL := a2c10c04f396a9ce72894beb18b4e1f9-jpeg-8c.tar.gz
+export LANGUAGETOOL_TARBALL := b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2
+export LCMS2_TARBALL := 861ef15fa0bc018f9ddc932c4ad8b6dd-lcms2-2.4.tar.gz
+export LIBEXTTEXTCAT_TARBALL := dc3d21a3921931096d6e80f6701f6763-libexttextcat-3.4.0.tar.bz2
+export LIBLANGTAG_TARBALL := 54e578c91b1b68e69c72be22adcb2195-liblangtag-0.4.0.tar.bz2
+export LIBXMLSEC_TARBALL := 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
+export LIBXML_TARBALL := 7740a8ec23878a2f50120e1faa2730f2-libxml2-2.7.6.tar.gz
+export LIBXSLT_TARBALL := e61d0364a30146aaa3001296f853b2b9-libxslt-1.1.26.tar.gz
+export LPSOLVE_TARBALL := 26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
+export MDDS_TARBALL := 9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2
+export MOZ_TARBALL := a169ab152209200a7bad29a275cb0333-seamonkey-1.1.14.source.tar.gz
+export MSPUB_TARBALL := b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2
+export MYSQLCPPCONN_TARBALL := 0981bda6548a8c8233ffce2b6e4b2a23-mysql-connector-c++-1.1.0.tar.gz
+export MYTHES_TARBALL := 46e92b68e31e858512b680b3b61dc4c1-mythes-1.2.3.tar.gz
+export NEON_TARBALL := ff369e69ef0f0143beb5626164e87ae2-neon-0.29.5.tar.gz
+export NSS_TARBALL := a0a861f539f0e7a91d05e6b9457e4db1-nss-3.13.5-with-nspr-4.9.1.tar.gz
+export OPENLDAP_TARBALL := 804c6cb5698db30b75ad0ff1c25baefd-openldap-2.4.31.tgz
+export OPENSSL_TARBALL := 51a40a81b3b7abe8a5c33670bd3da0ce-openssl-0.9.8v.tar.gz
+export ORCUS_TARBALL := 46d9f4cf8b145c21ce1056e116d2ce71-liborcus_0.1.0.tar.bz2
+export PIXMAN_TARBALL := c63f411b3ad147db2bcce1bf262a0e02-pixman-0.24.4.tar.bz2
+export PNG_TARBALL := 9e5d864bce8f06751bbd99962ecf4aad-libpng-1.5.10.tar.gz
+export POSTGRESQL_TARBALL := c0b4799ea9850eae3ead14f0a60e9418-postgresql-9.2.1.tar.bz2
+export PYTHON_TARBALL := b3b2524f72409d919a4137826a870a8f-Python-3.3.0.tar.bz2
+export RAPTOR_TARBALL := 284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
+export RASQAL_TARBALL := fca8706f2c4619e2fa3f8f42f8fc1e9d-rasqal-0.9.16.tar.gz
+export REDLAND_TARBALL := ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz
+export RHINO_TARBALL := 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
+export SWING_TARBALL := 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
+export TOMCAT_TARBALL := 2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
+export UCPP_TARBALL := 0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
+export VIGRA_TARBALL := ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz
+export VISIO_TARBALL := 1e961f0112e5986105749640c2b9bc41-libvisio-0.0.21.tar.bz2
+export WPD_TARBALL := e7f84e3199dfee9122949448cab3823f-libwpd-0.9.6.tar.bz2
+export WPG_TARBALL := 9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
+export WPS_TARBALL := d197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2
+export XPDF_TARBALL := 599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz
+export XSLTML_TARBALL := a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
+export ZLIB_TARBALL := 2ab442d169156f34c379c968f3f482dd-zlib-1.2.7.tar.bz2
+
+export MOZ_ZIP_INC := $(OS)$(COM)$(CPU)inc.zip
+export MOZ_ZIP_LIB := $(OS)$(COM)$(CPU)lib.zip
+export MOZ_ZIP_RUNTIME := $(OS)$(COM)$(CPU)runtime.zip
diff --git a/icu/makefile.mk b/icu/makefile.mk
index 5066ef0..82139b4 100644
--- a/icu/makefile.mk
+++ b/icu/makefile.mk
@@ -77,6 +77,14 @@ EXTRA_CDEFS+=-DU_HAVE_GCC_ATOMICS=1
 EXTRA_CDEFS+=-DU_HAVE_GCC_ATOMICS=0
 .ENDIF
 
+# Save space when using a bundled ICU by leaving out unneeded parts of the ICU data. Generated by
+# the interactive web tool at http://apps.icu-project.org/datacustom/ICUData49.html by dropping
+# the "Charset Mapping Tables". Probably we could carefully cherry-pick other items in the data to
+# be dropped, too. A bit tedious using that web tool, though.
+
+# If you do that, upload a new subset data zip file with just the MD5 part of the name changed
+# appropriately. Let's not bother trying to list what stuff has been removed in the file name.
+# Describe it in the comment above instead.
 CONFIGURE_ACTION=unzip $(TARFILE_LOCATION)/$(ICU_DATA_SUBSET_ZIP) && mv icudt49l.dat data/in && 
 
 .IF "$(GUI)"=="UNX"
commit 6d69a50e769ebee5d0cd75a27fd1a5cdfaace284
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Thu Nov 22 11:21:58 2012 +0100

    add fetch_Optional to have conditions for download in makefile
    
    This is prepare commit for --with-all-tarballs.
    We probably don't want to define the tarball names conditionally in configure.
    
    Change-Id: Id41f73dd7094b3384ce43caf62018f53b3d86a81

diff --git a/Makefile.fetch b/Makefile.fetch
index bf2a672..8b50739 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -45,100 +45,104 @@ $(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \
 
 endef
 
+define fetch_Optional
+$(if $(filter $1,$(BUILD_TYPE)),$2)
+endef
+
 fetch :
 	$(foreach item, \
-		$(BUILD_TARBALLS) \
+		$(if $(filter YES,$(CROSS_COMPILING)),$(BUILD_TARBALLS)) \
 		18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz \
 		7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz \
 		c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz \
 		4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz \
-		$(AFMS_TARBALL) \
-		$(APACHE_COMMONS_CODEC_TARBALL) \
-		$(APACHE_COMMONS_HTTPCLIENT_TARBALL) \
-		$(APACHE_COMMONS_LANG_TARBALL) \
-		$(APACHE_COMMONS_LOGGING_TARBALL) \
-		$(BOOST_TARBALL) \
-		$(BSH_TARBALL) \
-		$(CAIRO_TARBALL) \
-		$(CDR_TARBALL) \
-		$(CLUCENE_TARBALL) \
-		$(CMIS_TARBALL) \
-		$(CPPUNIT_TARBALL) \
-		$(CT2N_TARBALL) \
-		$(CURL_TARBALL) \
-		$(EPM_TARBALL) \
-		$(EXPAT_TARBALL) \
-		$(FONT_DEJAVU_TARBALL) \
-		$(FONT_GENTIUM_TARBALL) \
-		$(FONT_LIBERATION_NARROW_TARBALL) \
-		$(FONT_LIBERATION_TARBALL) \
-		$(FONT_LINLIBERTINEG_TARBALL) \
-		$(FONT_PTSERIF_TARBALL) \
-		$(FONT_OPENSANS_TARBALL) \
-		$(FONT_SOURCESANS_TARBALL) \
-		$(FONT_SOURCECODE_TARBALL) \
-		$(FONTCONFIG_TARBALL) \
-		$(FREETYPE_TARBALL) \
+		$(call fetch_Optional,AFMS,$(AFMS_TARBALL)) \
+		$(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_CODEC_TARBALL)) \
+		$(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_HTTPCLIENT_TARBALL)) \
+		$(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_LANG_TARBALL)) \
+		$(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_LOGGING_TARBALL)) \
+		$(call fetch_Optional,BOOST,$(BOOST_TARBALL)) \
+		$(call fetch_Optional,BSH,$(BSH_TARBALL)) \
+		$(call fetch_Optional,CAIRO,$(CAIRO_TARBALL)) \
+		$(call fetch_Optional,CDR,$(CDR_TARBALL)) \
+		$(call fetch_Optional,CLUCENE,$(CLUCENE_TARBALL)) \
+		$(call fetch_Optional,CMIS,$(CMIS_TARBALL)) \
+		$(call fetch_Optional,CPPUNIT,$(CPPUNIT_TARBALL)) \
+		$(call fetch_Optional,CT2N,$(CT2N_TARBALL)) \
+		$(call fetch_Optional,CURL,$(CURL_TARBALL)) \
+		$(call fetch_Optional,EPM,$(EPM_TARBALL)) \
+		$(call fetch_Optional,EXPAT,$(EXPAT_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_DEJAVU_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_GENTIUM_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_LIBERATION_NARROW_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_LIBERATION_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_LINLIBERTINEG_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_PTSERIF_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_OPENSANS_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_SOURCESANS_TARBALL)) \
+		$(call fetch_Optional,MORE_FONTS,$(FONT_SOURCECODE_TARBALL)) \
+		$(call fetch_Optional,FONTCONFIG,$(FONTCONFIG_TARBALL)) \
+		$(call fetch_Optional,FREETYPE,$(FREETYPE_TARBALL)) \
 		$(GOOGLE_DOCS_EXTENSION_PACK) \
-		$(GRAPHITE_TARBALL) \
-		$(HSQLDB_TARBALL) \
-		$(HUNSPELL_TARBALL) \
-		$(HYPHEN_TARBALL) \
-		$(ICU_TARBALL) \
-		$(ICU_DATA_SUBSET_ZIP) \
-		$(JFREEREPORT_FLOW_ENGINE_TARBALL) \
-		$(JFREEREPORT_FLUTE_TARBALL) \
-		$(JFREEREPORT_LIBBASE_TARBALL) \
-		$(JFREEREPORT_LIBFONTS_TARBALL) \
-		$(JFREEREPORT_LIBFORMULA_TARBALL) \
-		$(JFREEREPORT_LIBLAYOUT_TARBALL) \
-		$(JFREEREPORT_LIBLOADER_TARBALL) \
-		$(JFREEREPORT_LIBREPOSITORY_TARBALL) \
-		$(JFREEREPORT_LIBSERIALIZER_TARBALL) \
-		$(JFREEREPORT_LIBXML_TARBALL) \
-		$(JFREEREPORT_SAC_TARBALL) \
-		$(JPEG_TARBALL) \
-		$(LANGUAGETOOL_TARBALL) \
-		$(LCMS2_TARBALL) \
-		$(LIBEXTTEXTCAT_TARBALL) \
-		$(LIBLANGTAG_TARBALL) \
-		$(LIBXML_TARBALL) \
+		$(call fetch_Optional,GRAPHITE,$(GRAPHITE_TARBALL)) \
+		$(call fetch_Optional,HSQLDB,$(HSQLDB_TARBALL)) \
+		$(call fetch_Optional,HUNSPELL,$(HUNSPELL_TARBALL)) \
+		$(call fetch_Optional,HYPHEN,$(HYPHEN_TARBALL)) \
+		$(call fetch_Optional,ICU,$(ICU_TARBALL)) \
+		$(call fetch_Optional,ICU,$(ICU_DATA_SUBSET_ZIP)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_FLOW_ENGINE_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_FLUTE_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBBASE_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBFONTS_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBFORMULA_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBLAYOUT_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBLOADER_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBREPOSITORY_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBSERIALIZER_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBXML_TARBALL)) \
+		$(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_SAC_TARBALL)) \
+		$(call fetch_Optional,JPEG,$(JPEG_TARBALL)) \
+		$(call fetch_Optional,LANGUAGETOOL,$(LANGUAGETOOL_TARBALL)) \
+		$(call fetch_Optional,LCMS2,$(LCMS2_TARBALL)) \
+		$(call fetch_Optional,LIBEXTTEXTCAT,$(LIBEXTTEXTCAT_TARBALL)) \
+		$(call fetch_Optional,LIBLANGTAG,$(LIBLANGTAG_TARBALL)) \
+		$(call fetch_Optional,LIBXML2,$(LIBXML_TARBALL)) \
 		$(LIBXMLSEC_TARBALL) \
-		$(LIBXSLT_TARBALL) \
-		$(LPSOLVE_TARBALL) \
-		$(MDDS_TARBALL) \
-		$(MOZ_TARBALL) \
-		$(MSPUB_TARBALL) \
-		$(MYSQLCPPCONN_TARBALL) \
-		$(MYTHES_TARBALL) \
-		$(NEON_TARBALL) \
-		$(NSS_TARBALL) \
-		$(OPENLDAP_TARBALL) \
-		$(OPENSSL_TARBALL) \
-		$(ORCUS_TARBALL) \
-		$(PIXMAN_TARBALL) \
-		$(PNG_TARBALL) \
-		$(POSTGRESQL_TARBALL) \
-		$(PYTHON_TARBALL) \
-		$(RAPTOR_TARBALL) \
-		$(RASQAL_TARBALL) \
-		$(REDLAND_TARBALL) \
-		$(RHINO_TARBALL) \
-		$(SWING_TARBALL) \
-		$(TOMCAT_TARBALL) \
-		$(UCPP_TARBALL) \
-		$(VIGRA_TARBALL) \
-		$(VISIO_TARBALL) \
-		$(WPD_TARBALL) \
-		$(WPG_TARBALL) \
-		$(WPS_TARBALL) \
-		$(XPDF_TARBALL) \
-		$(XSLTML_TARBALL) \
-		$(ZLIB_TARBALL) \
+		$(call fetch_Optional,LIBXSLT,$(LIBXSLT_TARBALL)) \
+		$(call fetch_Optional,LPSOLVE,$(LPSOLVE_TARBALL)) \
+		$(call fetch_Optional,MDDS,$(MDDS_TARBALL)) \
+		$(call fetch_Optional,MOZ,$(MOZ_TARBALL)) \
+		$(call fetch_Optional,MSPUB,$(MSPUB_TARBALL)) \
+		$(call fetch_Optional,MYSQLCPPCONN,$(MYSQLCPPCONN_TARBALL)) \
+		$(call fetch_Optional,MYTHES,$(MYTHES_TARBALL)) \
+		$(call fetch_Optional,NEON,$(NEON_TARBALL)) \
+		$(call fetch_Optional,NSS,$(NSS_TARBALL)) \
+		$(call fetch_Optional,OPENLDAP,$(OPENLDAP_TARBALL)) \
+		$(call fetch_Optional,OPENSSL,$(OPENSSL_TARBALL)) \
+		$(call fetch_Optional,ORCUS,$(ORCUS_TARBALL)) \
+		$(call fetch_Optional,CAIRO,$(PIXMAN_TARBALL)) \
+		$(call fetch_Optional,LIBPNG,$(PNG_TARBALL)) \
+		$(call fetch_Optional,POSTGRESQL,$(POSTGRESQL_TARBALL)) \
+		$(call fetch_Optional,PYTHON,$(PYTHON_TARBALL)) \
+		$(call fetch_Optional,REDLAND,$(RAPTOR_TARBALL)) \
+		$(call fetch_Optional,REDLAND,$(RASQAL_TARBALL)) \
+		$(call fetch_Optional,REDLAND,$(REDLAND_TARBALL)) \
+		$(call fetch_Optional,RHINO,$(RHINO_TARBALL)) \
+		$(call fetch_Optional,RHINO,$(SWING_TARBALL)) \
+		$(call fetch_Optional,TOMCAT,$(TOMCAT_TARBALL)) \
+		$(call fetch_Optional,UCPP,$(UCPP_TARBALL)) \
+		$(call fetch_Optional,VIGRA,$(VIGRA_TARBALL)) \
+		$(call fetch_Optional,VISIO,$(VISIO_TARBALL)) \
+		$(call fetch_Optional,WPD,$(WPD_TARBALL)) \
+		$(call fetch_Optional,WPG,$(WPG_TARBALL)) \
+		$(call fetch_Optional,WPS,$(WPS_TARBALL)) \
+		$(call fetch_Optional,XPDF,$(XPDF_TARBALL)) \
+		$(call fetch_Optional,XSLTML,$(XSLTML_TARBALL)) \
+		$(call fetch_Optional,ZLIB,$(ZLIB_TARBALL)) \
 	,$(call fetch_Download_item,http://dev-www.libreoffice.org/src,$(item)))
 	$(foreach item, \
-		$(DBGHELP_DLL) \
-		$(UNOWINREG_DLL) \
+		$(if $(filter WNT,$(OS)),$(DBGHELP_DLL)) \
+		$(call fetch_Optional,ODK,$(UNOWINREG_DLL)) \
 	,$(call fetch_Download_item,http://dev-www.libreoffice.org/extern,$(item)))
 	$(foreach item, \
 		$(BARCODE_EXTENSION_PACK) \
@@ -162,9 +166,9 @@ fetch :
 		$(WATCH_WINDOW_EXTENSION_PACK) \
 	,$(call fetch_Download_item,http://ooo.itc.hu/oxygenoffice/download/libreoffice,$(item)))
 	$(foreach item, \
-		$(MOZ_ZIP_INC) \
-		$(MOZ_ZIP_LIB) \
-		$(MOZ_ZIP_RUNTIME) \
+		$(call fetch_Optional,MOZ,$(MOZ_ZIP_INC)) \
+		$(call fetch_Optional,MOZ,$(MOZ_ZIP_LIB)) \
+		$(call fetch_Optional,MOZ,$(MOZ_ZIP_RUNTIME)) \
 	,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item)))
 
 # vim: set noet sw=4 ts=4:
diff --git a/configure.ac b/configure.ac
index b0f7f35..63bde77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6958,6 +6958,7 @@ elif test $_os = iOS; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBCDR=NO
+    BUILD_TYPE="$BUILD_TYPE CDR"
     CDR_TARBALL=3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBCDR)
@@ -6979,6 +6980,7 @@ elif test $_os = iOS; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBMSPUB=NO
+    BUILD_TYPE="$BUILD_TYPE MSPUB"
     MSPUB_TARBALL=b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBMSPUB)
@@ -7000,6 +7002,7 @@ elif test $_os = iOS; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBVISIO=NO
+    BUILD_TYPE="$BUILD_TYPE VISIO"
     VISIO_TARBALL=1e961f0112e5986105749640c2b9bc41-libvisio-0.0.21.tar.bz2
 fi
 AC_SUBST(SYSTEM_LIBVISIO)
@@ -7018,6 +7021,7 @@ if test "$with_system_libcmis" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     SYSTEM_LIBCMIS=NO
+    BUILD_TYPE="$BUILD_TYPE CMIS"
     CMIS_TARBALL=b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz
 fi
 AC_SUBST(SYSTEM_LIBCMIS)
@@ -7042,6 +7046,7 @@ else
     WPD_CFLAGS="-I${OUTDIR}/inc/external"
     WPD_LIBS="-L${OUTDIR}/lib -lwpdlib"
     WPD_TARBALL=e7f84e3199dfee9122949448cab3823f-libwpd-0.9.6.tar.bz2
+    BUILD_TYPE="$BUILD_TYPE WPD"
 fi
 AC_SUBST(SYSTEM_LIBWPD)
 AC_SUBST(WPD_CFLAGS)
@@ -7128,6 +7133,7 @@ else
     WPS_CFLAGS="-I${OUTDIR}/inc/external"
     WPS_LIBS="-L${OUTDIR}/lib -lwpslib"
     WPS_TARBALL=d197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2
+    BUILD_TYPE="$BUILD_TYPE WPS"
 fi
 AC_SUBST(SYSTEM_LIBWPS)
 AC_SUBST(WPS_CFLAGS)
@@ -7150,6 +7156,7 @@ else
     WPG_CFLAGS="-I${OUTDIR}/inc/external"
     WPG_LIBS="-L${OUTDIR}/lib -lwpglib"
     WPG_TARBALL=9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
+    BUILD_TYPE="$BUILD_TYPE WPG"
 fi
 AC_SUBST(SYSTEM_LIBWPG)
 AC_SUBST(WPG_CFLAGS)
@@ -7985,6 +7992,7 @@ if test "$with_system_mdds" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     MDDS_TARBALL=9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2
+    BUILD_TYPE="$BUILD_TYPE MDDS"
     SYSTEM_MDDS=NO
 
     dnl ===================================================================
@@ -8012,6 +8020,7 @@ if test "$with_system_vigra" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     VIGRA_TARBALL=ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz
+    BUILD_TYPE="$BUILD_TYPE VIGRA"
     SYSTEM_VIGRA=NO
 fi
 AC_SUBST(SYSTEM_VIGRA)
@@ -8859,6 +8868,7 @@ if test "$with_system_orcus" = "yes"; then
 else
     AC_MSG_RESULT([internal])
     ORCUS_TARBALL=46d9f4cf8b145c21ce1056e116d2ce71-liborcus_0.1.0.tar.bz2
+    BUILD_TYPE="$BUILD_TYPE ORCUS"
     SYSTEM_LIBORCUS=NO
 
     if test "$SYSTEM_BOOST" = "YES"; then
@@ -9894,6 +9904,7 @@ if test "x$enable_ext_wiki_publisher" = "xyes" -a "x$enable_extension_integratio
   AC_MSG_RESULT([yes])
   ENABLE_MEDIAWIKI=YES
   XSLTML_TARBALL=a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
+  BUILD_TYPE="$BUILD_TYPE XSLTML"
   if test  "x$with_java" = "xno"; then
     AC_MSG_ERROR([Wiki Publisher requires Java! Enable Java if you want to build it.])
   fi
commit 16aa073855da37d75d0f48e7fbdf92d14ef8c264
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Wed Nov 21 22:36:34 2012 +0100

    move ooo.lst and download parts to Makefile.fetch
    
    Change-Id: I2d27341566d383002446c23bdf60c7aa0cabf37d

diff --git a/.gitignore b/.gitignore
index f7978e0..ddb84f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,7 +62,6 @@
 /desktop/scripts/soffice.sh
 /makefile.mk
 /src.downloaded
-/ooo.lst
 /intltool-extract.in
 /intltool-merge.in
 /intltool-update.in
diff --git a/Makefile b/Makefile
index 65be21f..5bd79e1 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,6 @@ $(filter-out help,$(firstword $(MAKECMDGOALS))) : $(SRCDIR)/config_host.mk
 # run configure in an environment not polluted by config_host.mk
 $(SRCDIR)/config_host.mk : \
 		$(SRCDIR)/config_host.mk.in \
-		$(SRCDIR)/ooo.lst.in \
 		$(SRCDIR)/configure.ac \
 		$(SRCDIR)/autogen.lastrun
 	./autogen.sh
diff --git a/Makefile.fetch b/Makefile.fetch
new file mode 100644
index 0000000..bf2a672
--- /dev/null
+++ b/Makefile.fetch
@@ -0,0 +1,170 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+fetch_LOGFILE := $(TARFILE_LOCATION)/fetch.log
+
+ifneq (,$(WGET))
+define fetch_Download__wget_command
+&& $(WGET) --progress=dot:mega -Q 0 -P "." -l 0 -nd -nH -N $1/$2 2>&1 | tee -a $(fetch_LOGFILE)
+endef
+
+else
+define fetch_Download__wget_command
+&& echo fetching $2 && $(CURL) -O $1/$2 2>&1 | tee -a $(fetch_LOGFILE)
+endef
+
+endif
+
+ifneq (,$(MD5SUM))
+define fetch_Download__checksum_command
+&& SUM=`$(MD5SUM) $1 | sed "s/ .*//"` \
+&& if test "$$SUM" != "$2"; then \
+	echo ERROR: expected checksum for $1 is $2 2>&1 | tee -a $(fetch_LOGFILE); \
+	false; \
+fi
+endef
+
+else
+fetch_Download__checksum_command :=
+
+endif
+
+define fetch_Download_item
+$(if $(wildcard $(TARFILE_LOCATION)/$2),, \
+cd $(TARFILE_LOCATION)/tmp \
+$(call fetch_Download__wget_command,$1,$2) \
+$(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \
+&& mv $2 ../ \
+)
+
+endef
+
+fetch :
+	$(foreach item, \
+		$(BUILD_TARBALLS) \
+		18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz \
+		7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz \
+		c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz \
+		4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz \
+		$(AFMS_TARBALL) \
+		$(APACHE_COMMONS_CODEC_TARBALL) \
+		$(APACHE_COMMONS_HTTPCLIENT_TARBALL) \
+		$(APACHE_COMMONS_LANG_TARBALL) \
+		$(APACHE_COMMONS_LOGGING_TARBALL) \
+		$(BOOST_TARBALL) \
+		$(BSH_TARBALL) \
+		$(CAIRO_TARBALL) \
+		$(CDR_TARBALL) \
+		$(CLUCENE_TARBALL) \
+		$(CMIS_TARBALL) \
+		$(CPPUNIT_TARBALL) \
+		$(CT2N_TARBALL) \
+		$(CURL_TARBALL) \
+		$(EPM_TARBALL) \
+		$(EXPAT_TARBALL) \
+		$(FONT_DEJAVU_TARBALL) \
+		$(FONT_GENTIUM_TARBALL) \
+		$(FONT_LIBERATION_NARROW_TARBALL) \
+		$(FONT_LIBERATION_TARBALL) \
+		$(FONT_LINLIBERTINEG_TARBALL) \
+		$(FONT_PTSERIF_TARBALL) \
+		$(FONT_OPENSANS_TARBALL) \
+		$(FONT_SOURCESANS_TARBALL) \
+		$(FONT_SOURCECODE_TARBALL) \
+		$(FONTCONFIG_TARBALL) \
+		$(FREETYPE_TARBALL) \
+		$(GOOGLE_DOCS_EXTENSION_PACK) \
+		$(GRAPHITE_TARBALL) \
+		$(HSQLDB_TARBALL) \
+		$(HUNSPELL_TARBALL) \
+		$(HYPHEN_TARBALL) \
+		$(ICU_TARBALL) \
+		$(ICU_DATA_SUBSET_ZIP) \
+		$(JFREEREPORT_FLOW_ENGINE_TARBALL) \
+		$(JFREEREPORT_FLUTE_TARBALL) \
+		$(JFREEREPORT_LIBBASE_TARBALL) \
+		$(JFREEREPORT_LIBFONTS_TARBALL) \
+		$(JFREEREPORT_LIBFORMULA_TARBALL) \
+		$(JFREEREPORT_LIBLAYOUT_TARBALL) \
+		$(JFREEREPORT_LIBLOADER_TARBALL) \
+		$(JFREEREPORT_LIBREPOSITORY_TARBALL) \
+		$(JFREEREPORT_LIBSERIALIZER_TARBALL) \
+		$(JFREEREPORT_LIBXML_TARBALL) \
+		$(JFREEREPORT_SAC_TARBALL) \
+		$(JPEG_TARBALL) \
+		$(LANGUAGETOOL_TARBALL) \
+		$(LCMS2_TARBALL) \
+		$(LIBEXTTEXTCAT_TARBALL) \
+		$(LIBLANGTAG_TARBALL) \
+		$(LIBXML_TARBALL) \
+		$(LIBXMLSEC_TARBALL) \
+		$(LIBXSLT_TARBALL) \
+		$(LPSOLVE_TARBALL) \
+		$(MDDS_TARBALL) \
+		$(MOZ_TARBALL) \
+		$(MSPUB_TARBALL) \
+		$(MYSQLCPPCONN_TARBALL) \
+		$(MYTHES_TARBALL) \
+		$(NEON_TARBALL) \
+		$(NSS_TARBALL) \
+		$(OPENLDAP_TARBALL) \
+		$(OPENSSL_TARBALL) \
+		$(ORCUS_TARBALL) \
+		$(PIXMAN_TARBALL) \
+		$(PNG_TARBALL) \
+		$(POSTGRESQL_TARBALL) \
+		$(PYTHON_TARBALL) \
+		$(RAPTOR_TARBALL) \
+		$(RASQAL_TARBALL) \
+		$(REDLAND_TARBALL) \
+		$(RHINO_TARBALL) \
+		$(SWING_TARBALL) \
+		$(TOMCAT_TARBALL) \
+		$(UCPP_TARBALL) \
+		$(VIGRA_TARBALL) \
+		$(VISIO_TARBALL) \
+		$(WPD_TARBALL) \
+		$(WPG_TARBALL) \
+		$(WPS_TARBALL) \
+		$(XPDF_TARBALL) \
+		$(XSLTML_TARBALL) \
+		$(ZLIB_TARBALL) \
+	,$(call fetch_Download_item,http://dev-www.libreoffice.org/src,$(item)))
+	$(foreach item, \
+		$(DBGHELP_DLL) \
+		$(UNOWINREG_DLL) \
+	,$(call fetch_Download_item,http://dev-www.libreoffice.org/extern,$(item)))
+	$(foreach item, \
+		$(BARCODE_EXTENSION_PACK) \
+		$(DIAGRAM_EXTENSION_PACK) \
+		$(HUNART_EXTENSION_PACK) \
+		$(NUMBERTEXT_EXTENSION_PACK) \
+		$(OOOBLOGGER_EXTENSION_PACK) \
+		$(OOOP_FONTS_PACK) \
+		$(OOOP_GALLERY_PACK) \
+		$(OOOP_SAMPLES_PACK) \
+		$(OOOP_TEMPLATES_PACK) \
+		$(OXYGENOFFICE_PACK) \
+		$(SUNTEMPLATES_DE_PACK) \
+		$(SUNTEMPLATES_EN_US_PACK) \
+		$(SUNTEMPLATES_ES_PACK) \
+		$(SUNTEMPLATES_FR_PACK) \
+		$(SUNTEMPLATES_HU_PACK) \
+		$(SUNTEMPLATES_IT_PACK) \
+		$(TYPO_EXTENSION_PACK) \
+		$(VALIDATOR_EXTENSION_PACK) \
+		$(WATCH_WINDOW_EXTENSION_PACK) \
+	,$(call fetch_Download_item,http://ooo.itc.hu/oxygenoffice/download/libreoffice,$(item)))
+	$(foreach item, \
+		$(MOZ_ZIP_INC) \
+		$(MOZ_ZIP_LIB) \
+		$(MOZ_ZIP_RUNTIME) \
+	,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/Makefile.top b/Makefile.top
index 283128e..3d570f8 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -351,7 +351,7 @@ ifeq ($(BUILD_DMAKE),YES)
 	rm -f solenv/*/bin/dmake*
 endif
 	rm -fr config_host.mk config_build.mk aclocal.m4 autom4te.cache \
-	config.log config.status configure ooo.lst \
+	config.log config.status configure \
 	config_host.mk.last config_host.mk.stamp src.downloaded warn
 	find $(SOLARENV)/gdb -name "*.pyc" -exec rm {} \;
 
@@ -368,11 +368,14 @@ ifneq ($(filter-out clean distclean,$(MAKECMDGOALS)),)
 #
 # Fetch
 #
-fetch: src.downloaded
+ifeq ($(DO_FETCH_TARBALLS),YES)
+include $(SRCDIR)/Makefile.fetch
+endif
+fetch: $(SRCDIR)/src.downloaded
 
-src.downloaded : Makefile.top download ooo.lst
+$(SRCDIR)/src.downloaded : $(SRCDIR)/download $(SRCDIR)/config_host.mk
 ifeq ($(DO_FETCH_TARBALLS),YES)
-	@./download $(SRCDIR)/ooo.lst && touch $@
+	@$< && touch $@
 else
 	@echo "Automatic fetching of external tarballs is disabled."
 endif
diff --git a/configure.ac b/configure.ac
index 1184729..b0f7f35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4113,7 +4113,6 @@ if test "$cross_compiling" = "yes"; then
         config.guess \
         config_host.mk.in \
         configure \
-        ooo.lst.in \
         oowintool \
         bin/get_config_variables \
         solenv/bin/getcompver.awk \
@@ -11196,7 +11195,7 @@ AC_SUBST(WITH_FONTS)
 
 
 # The agfa monotype fonts options seems broken
-# there is no assocaited entry in ooo.lst
+# there is no assocaited entry in Makefile.fetch
 # so we do not fetch the dependencies
 # there is no tie-up with MORE_FONTS, but in dmake mode
 # without more_fonts that option is meaningless
@@ -12575,7 +12574,7 @@ else
     echo > config_host.mk.last
 fi
 
-AC_CONFIG_FILES([config_host.mk ooo.lst])
+AC_CONFIG_FILES([config_host.mk])
 AC_OUTPUT
 
 # touch the config timestamp file
diff --git a/download b/download
index 90ec67e..0a0e7d3 100755
--- a/download
+++ b/download
@@ -71,12 +71,6 @@ if [ ! -d "$TARFILE_LOCATION" ]; then
     exit 1
 fi
 
-FILELIST="$1"
-if [ -z "$FILELIST" ]; then
-    echo "No filelist provided, using the default ooo.lst."
-    FILELIST="ooo.lst"
-fi
-
 start_dir=`pwd`
 logfile=$TARFILE_LOCATION/fetch.log
 date >> $logfile
@@ -122,22 +116,9 @@ downloaditem()
     fi
 }
 
-filelist=`cat $FILELIST`
 mkdir -p $TARFILE_LOCATION/tmp
 cd $TARFILE_LOCATION/tmp
 echo $$ > fetch-running
-for i in $filelist ; do
-#    echo $i
-    if [ "$i" != `echo $i | sed "s/^http:\///"` ]; then
-        tarurl=$i
-    # TODO: check for comment
-    else
-        if [ "$tarurl" != "" ]; then
-            sum=`echo $i | sed "s/-.*//"`
-            downloaditem $tarurl $i $sum
-        fi
-    fi
-done
 
 if [ -f $start_dir/sources.ver -a ! -d $start_dir/.git ] ; then
     # these sources are from a tarball, so get the other source tarballs
diff --git a/ooo.lst.in b/ooo.lst.in
deleted file mode 100644
index 2872ccf..0000000
--- a/ooo.lst.in
+++ /dev/null
@@ -1,115 +0,0 @@
-http://dev-www.libreoffice.org/src
-18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
-7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz
-c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz
-4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz
- at AFMS_TARBALL@
- at APACHE_COMMONS_CODEC_TARBALL@
- at APACHE_COMMONS_HTTPCLIENT_TARBALL@
- at APACHE_COMMONS_LANG_TARBALL@
- at APACHE_COMMONS_LOGGING_TARBALL@
- at BOOST_TARBALL@
- at BSH_TARBALL@
- at CAIRO_TARBALL@
- at CDR_TARBALL@
- at CLUCENE_TARBALL@
- at CMIS_TARBALL@
- at CPPUNIT_TARBALL@
- at CT2N_TARBALL@
- at CURL_TARBALL@
- at EPM_TARBALL@
- at EXPAT_TARBALL@
- at FONT_DEJAVU_TARBALL@
- at FONT_GENTIUM_TARBALL@
- at FONT_LIBERATION_NARROW_TARBALL@
- at FONT_LIBERATION_TARBALL@
- at FONT_LINLIBERTINEG_TARBALL@
- at FONT_PTSERIF_TARBALL@
- at FONT_OPENSANS_TARBALL@
- at FONT_SOURCESANS_TARBALL@
- at FONT_SOURCECODE_TARBALL@
- at FONTCONFIG_TARBALL@
- at FREETYPE_TARBALL@
- at GOOGLE_DOCS_EXTENSION_PACK@
- at GRAPHITE_TARBALL@
- at HSQLDB_TARBALL@
- at HUNSPELL_TARBALL@
- at HYPHEN_TARBALL@
- at ICU_TARBALL@
- at ICU_DATA_SUBSET_ZIP@
- at JFREEREPORT_FLOW_ENGINE_TARBALL@
- at JFREEREPORT_FLUTE_TARBALL@
- at JFREEREPORT_LIBBASE_TARBALL@
- at JFREEREPORT_LIBFONTS_TARBALL@
- at JFREEREPORT_LIBFORMULA_TARBALL@
- at JFREEREPORT_LIBLAYOUT_TARBALL@
- at JFREEREPORT_LIBLOADER_TARBALL@
- at JFREEREPORT_LIBREPOSITORY_TARBALL@
- at JFREEREPORT_LIBSERIALIZER_TARBALL@
- at JFREEREPORT_LIBXML_TARBALL@
- at JFREEREPORT_SAC_TARBALL@
- at JPEG_TARBALL@
- at LANGUAGETOOL_TARBALL@
- at LCMS2_TARBALL@
- at LIBEXTTEXTCAT_TARBALL@
- at LIBLANGTAG_TARBALL@
- at LIBXML_TARBALL@
- at LIBXMLSEC_TARBALL@
- at LIBXSLT_TARBALL@
- at LPSOLVE_TARBALL@
- at MDDS_TARBALL@
- at MOZ_TARBALL@
- at MSPUB_TARBALL@
- at MYSQLCPPCONN_TARBALL@
- at MYTHES_TARBALL@
- at NEON_TARBALL@
- at NSS_TARBALL@
- at OPENLDAP_TARBALL@
- at OPENSSL_TARBALL@
- at ORCUS_TARBALL@
- at PIXMAN_TARBALL@
- at PNG_TARBALL@
- at POSTGRESQL_TARBALL@
- at PYTHON_TARBALL@
- at RAPTOR_TARBALL@
- at RASQAL_TARBALL@
- at REDLAND_TARBALL@
- at RHINO_TARBALL@
- at SWING_TARBALL@
- at TOMCAT_TARBALL@
- at UCPP_TARBALL@
- at VIGRA_TARBALL@
- at VISIO_TARBALL@
- at WPD_TARBALL@
- at WPG_TARBALL@
- at WPS_TARBALL@
- at XPDF_TARBALL@
- at XSLTML_TARBALL@
- at ZLIB_TARBALL@
-http://dev-www.libreoffice.org/extern
- at DBGHELP_DLL@
- at UNOWINREG_DLL@
-http://ooo.itc.hu/oxygenoffice/download/libreoffice/
- at BARCODE_EXTENSION_PACK@
- at DIAGRAM_EXTENSION_PACK@
- at HUNART_EXTENSION_PACK@
- at NUMBERTEXT_EXTENSION_PACK@
- at OOOBLOGGER_EXTENSION_PACK@
- at OOOP_FONTS_PACK@
- at OOOP_GALLERY_PACK@
- at OOOP_SAMPLES_PACK@
- at OOOP_TEMPLATES_PACK@
- at OXYGENOFFICE_PACK@
- at SUNTEMPLATES_DE_PACK@
- at SUNTEMPLATES_EN_US_PACK@
- at SUNTEMPLATES_ES_PACK@
- at SUNTEMPLATES_FR_PACK@
- at SUNTEMPLATES_HU_PACK@
- at SUNTEMPLATES_IT_PACK@
- at TYPO_EXTENSION_PACK@
- at VALIDATOR_EXTENSION_PACK@
- at WATCH_WINDOW_EXTENSION_PACK@
-http://dev-www.libreoffice.org/mozilla/
- at MOZ_ZIP_INC@
- at MOZ_ZIP_LIB@
- at MOZ_ZIP_RUNTIME@
commit bec854077c372f32a904e21b818a6639c18671e0
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Wed Nov 21 11:46:29 2012 +0100

    move check for wget and md5sum to configure
    
    Change-Id: I1951f25ddff112e8184c90006cd6e87a1c02a930

diff --git a/config_host.mk.in b/config_host.mk.in
index b4d0401..57153e2 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -90,6 +90,7 @@ export CPUNAME_FOR_BUILD=@CPUNAME_FOR_BUILD@
 export CPU_FOR_BUILD=@CPU_FOR_BUILD@
 export CROSS_COMPILING=@CROSS_COMPILING@
 export CT2N_TARBALL=@CT2N_TARBALL@
+export CURL=@CURL@
 export CURL_TARBALL=@CURL_TARBALL@
 export CURL_CFLAGS=$(gb_SPACE)@CURL_CFLAGS@
 export CURL_LIBS=$(gb_SPACE)@CURL_LIBS@
@@ -361,6 +362,7 @@ export MACOSX_SDK_PATH=@MACOSX_SDK_PATH@
 export MACOSX_SDK_VERSION=@MACOSX_SDK_VERSION@
 export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
 export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
+export MD5SUM=@MD5SUM@
 export MDDS_CPPFLAGS=$(gb_SPACE)@MDDS_CPPFLAGS@
 export MDDS_TARBALL=@MDDS_TARBALL@
 export MERGELIBS=@MERGELIBS@
@@ -662,6 +664,7 @@ export VISIO_CFLAGS=$(gb_SPACE)@VISIO_CFLAGS@
 export VISIO_LIBS=$(gb_SPACE)@VISIO_LIBS@
 export VISIO_TARBALL=@VISIO_TARBALL@
 export WATCH_WINDOW_EXTENSION_PACK=@WATCH_WINDOW_EXTENSION_PACK@
+export WGET=@WGET@
 export WINDOWS_SDK_HOME=@WINDOWS_SDK_HOME@
 export WINDOWS_SDK_VERSION=@WINDOWS_SDK_VERSION@
 export WINDRES=@WINDRES@
diff --git a/configure.ac b/configure.ac
index a5296e1..1184729 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11835,6 +11835,56 @@ AC_SUBST([DOXYGEN])
 
 AC_SUBST(SCPDEFS)
 
+#
+# check for wget and md5sum
+#
+WGET=
+MD5SUM=
+CURL=`which curl 2>/dev/null`
+
+for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/wget /opt/local/bin/wget; do
+    eval "$i --version" > /dev/null 2>&1
+    ret=$?
+    if test $ret -eq 0; then
+        WGET=$i
+        break
+    fi
+done
+
+if test -z "$WGET" -a -z "$CURL"; then
+    AC_MSG_ERROR([neither wget nor curl found!])
+fi
+
+for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/bin/gmd5sum /opt/local/bin/md5sum; do
+    if test "$i" = "md5"; then
+        eval "$i -x" > /dev/null 2>&1
+    else
+        eval "$i --version" > /dev/null 2>&1
+    fi
+    ret=$?
+    if test $ret -eq 0; then
+        MD5SUM=$i
+        break
+    fi
+done
+
+if test "$MD5SUM" = "md5"; then
+    if md5 -r < /dev/null > /dev/null 2>/dev/null; then
+        MD5SUM="$MD5SUM -r"
+    elif md5 -n < /dev/null > /dev/null 2>/dev/null; then
+        MD5SUM="$MD5SUM -n"
+    fi
+fi
+
+if test -z "$MD5SUM"; then
+    AC_MSG_WARN([no md5sum: found!])
+    add_warning "no md5sum: found!"
+fi
+
+AC_SUBST(WGET)
+AC_SUBST(CURL)
+AC_SUBST(MD5SUM)
+
 dnl ===================================================================
 dnl Product version
 dnl ===================================================================
diff --git a/download b/download
index c6e94d2..90ec67e 100755
--- a/download
+++ b/download
@@ -30,7 +30,7 @@ set -o pipefail
 
 # environment setup yet?
 if [ -z "$TARFILE_LOCATION" ]; then

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list