mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
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
This commit is contained in:
committed by
George Joseph
parent
ce7a72d7e2
commit
1bf6d02f13
2
configure
vendored
2
configure
vendored
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user