mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
make the given path to --with-libidn override any other installation
This commit is contained in:
parent
70c3f6a8dd
commit
19a568a983
21
configure.ac
21
configure.ac
@ -953,23 +953,28 @@ case "$LIBIDN" in
|
||||
AC_MSG_RESULT(no)
|
||||
;;
|
||||
*) AC_MSG_RESULT(yes)
|
||||
AC_CHECK_LIB(idn, idna_to_ascii_lz, ,
|
||||
[
|
||||
dnl if there was a given path, try it
|
||||
nolibidn="true"
|
||||
|
||||
idn=""
|
||||
dnl if there is a given path, check that FIRST
|
||||
if test "x$LIBIDN" != "xyes"; then
|
||||
nolibidn="" dnl reset to test again
|
||||
oldLDFLAGS=$LDFLAGS
|
||||
oldCPPFLAGS=$CPPFLAGS
|
||||
LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
|
||||
idn="yes"
|
||||
AC_CHECK_LIB(idn, idna_to_ascii_4i, ,
|
||||
nolibidn="true"
|
||||
idn=""
|
||||
LDFLAGS=$oldLDFLAGS
|
||||
CPPFLAGS=$oldCPPFLAGS)
|
||||
fi
|
||||
])
|
||||
if test "x$nolibidn" != "xtrue"; then
|
||||
|
||||
if test "x$idn" != "xyes"; then
|
||||
dnl check with default paths
|
||||
AC_CHECK_LIB(idn, idna_to_ascii_lz, ,
|
||||
idn="")
|
||||
fi
|
||||
|
||||
if test "x$idn" = "xyes"; then
|
||||
curl_idn_msg="enabled"
|
||||
dnl different versions of libidn have different setups of these:
|
||||
AC_CHECK_FUNCS( idn_free idna_strerror )
|
||||
|
Loading…
Reference in New Issue
Block a user