aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-11-25 23:00:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-25 23:05:37 +0100
commit874855b743bd7e9bbbaebe2834dd281d2b2cea80 (patch)
tree0d20ce8cd0614591b60860a33ce3ed95234b9a48
parentac54d27d4bdbd49332cf3914fc726c24c155cbf7 (diff)
configure: add support for pkg-config detection of libidn
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2ba662560..52158f119 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2377,6 +2377,15 @@ case "$LIBIDN" in
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"
AC_CHECK_LIB(idn, idna_to_ascii_lz, ,