From: Miguel Angel Nubla Date: Thu, 1 Jun 2023 00:09:39 +0000 (+0200) Subject: configure: Makefile downloader enable follow redirects. X-Git-Tag: 21.0.0-pre1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bf6d02f13ea06369f2b0b948d4ad69c3b3cf5bd;p=thirdparty%2Fasterisk.git configure: Makefile downloader enable follow redirects. If curl is used for building, any download such as a sounds package will fail to follow HTTP redirects and will download wrong data. Resolves: #136 --- diff --git a/configure b/configure index 439bba2cdc..3173518f7e 100755 --- a/configure +++ b/configure @@ -7705,7 +7705,7 @@ if test "x${WGET}" != "x:"; then DOWNLOAD_TO_STDOUT="${WGET} -q -O-" DOWNLOAD_TIMEOUT='--timeout=$1' elif test "x${CURL}" != "x:"; then - DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\"" + DOWNLOAD="${CURL} -L -O --progress-bar -w \"%{url_effective}\n\"" DOWNLOAD_TO_STDOUT="${CURL} -Ls" DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)' else diff --git a/configure.ac b/configure.ac index db76aad6c6..0a542e7d88 100644 --- a/configure.ac +++ b/configure.ac @@ -296,7 +296,7 @@ if test "x${WGET}" != "x:"; then DOWNLOAD_TO_STDOUT="${WGET} -q -O-" DOWNLOAD_TIMEOUT='--timeout=$1' elif test "x${CURL}" != "x:"; then - DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\"" + DOWNLOAD="${CURL} -L -O --progress-bar -w \"%{url_effective}\n\"" DOWNLOAD_TO_STDOUT="${CURL} -Ls" DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)' else