]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
configure: Makefile downloader enable follow redirects.
authorMiguel Angel Nubla <miguelangel.nubla@gmail.com>
Thu, 1 Jun 2023 00:09:39 +0000 (02:09 +0200)
committerGeorge Joseph <gtjoseph@users.noreply.github.com>
Mon, 5 Jun 2023 18:37:06 +0000 (12:37 -0600)
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

configure
configure.ac

index 439bba2cdcd68d0b4b3787f782e1dd8e8cc9e40f..3173518f7eb67f8001a843c7144ae160e69055d4 100755 (executable)
--- 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
index db76aad6c686095aa18757c29741c3417c3f2869..0a542e7d88c8f44e3c7fab1737830a3ba91cd221 100644 (file)
@@ -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