mirror of
https://github.com/curl/curl.git
synced 2026-05-06 12:07:29 +03:00
configure: add support for pkg-config detection of libidn
This commit is contained in:
parent
ac54d27d4b
commit
874855b743
1 changed files with 9 additions and 0 deletions
|
|
@ -2376,6 +2376,15 @@ case "$LIBIDN" in
|
|||
fi
|
||||
fi
|
||||
|
||||
if test "x$idn" != "xyes"; then
|
||||
dnl check with pkg-config
|
||||
PKG_CHECK_MODULES(LIBIDN_PC, libidn >= 0.0.0, [idn=yes], [idn=no])
|
||||
if test "x$idn" = "xyes"; then
|
||||
LIBS="$LIBS $LIBIDN_PC_LIBS"
|
||||
CPPFLAGS="$CPPFLAGS $LIBIDN_PC_CFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "x$idn" != "xyes"; then
|
||||
dnl check with default paths
|
||||
idn="yes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue