mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
configure: fix --with-zlib when a path is specified
Prior to this change if you attempted to configure curl using --wtih-zlib and specified a path the path would be ignored if you also had pkg-config installed on your system. This situation can easily arise when you are cross compiling. This change moves the test for detecting zlib settings via pkg-config only if OPT_ZLIB is not set. Closes https://github.com/curl/curl/pull/1292
This commit is contained in:
parent
e952402404
commit
6fc91f6d3a
@ -893,6 +893,7 @@ else
|
||||
OPT_ZLIB=""
|
||||
fi
|
||||
|
||||
if test -z "$OPT_ZLIB" ; then
|
||||
CURL_CHECK_PKGCONFIG(zlib)
|
||||
|
||||
if test "$PKGCONFIG" != "no" ; then
|
||||
@ -903,8 +904,6 @@ else
|
||||
HAVE_LIBZ="1"
|
||||
fi
|
||||
|
||||
if test -z "$OPT_ZLIB" ; then
|
||||
|
||||
if test -z "$HAVE_LIBZ"; then
|
||||
|
||||
dnl Check for the lib without setting any new path, since many
|
||||
|
Loading…
Reference in New Issue
Block a user