From: Mark Brand Date: Fri, 25 Nov 2011 22:00:16 +0000 (+0100) Subject: configure: add support for pkg-config detection of libidn X-Git-Tag: curl-7_24_0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=874855b743bd7e9bbbaebe2834dd281d2b2cea80;p=thirdparty%2Fcurl.git configure: add support for pkg-config detection of libidn --- diff --git a/configure.ac b/configure.ac index 2ba6625600..52158f1191 100644 --- a/configure.ac +++ b/configure.ac @@ -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"