summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2014-03-01 22:57:57 +0000
committerLRN <lrn1986@gmail.com>2014-03-01 22:57:57 +0000
commitc947d21f71730fabb2fdad503baa98de60fb84e0 (patch)
tree4a07b046c4c1fe4738f4d8a09fe6c37cad60de37 /configure.ac
parent3e8fdd425a6186e2ae8b342384ce9addb2b1aaff (diff)
libidn is needed unconditionally for libgnunetdnsparser
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 06ab80ace..088045b2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,11 +473,14 @@ if test "$libidn" != "no"; then
LDFLAGS="${LDFLAGS} -L$libidn/lib"
CPPFLAGS="${CPPFLAGS} -I$libidn/include"
fi
- AC_CHECK_HEADER(idna.h,
- AC_CHECK_LIB(idn, stringprep_check_version,
- [libidn=yes LIBS="${LIBS} -lidn"],
- AC_MSG_FAILURE([GNUnet requires libidn])),
- AC_MSG_FAILURE([GNUnet requires libidn]))
+fi
+libidn=no
+AC_CHECK_HEADER(idna.h,
+ AC_CHECK_LIB(idn, stringprep_check_version,
+ [libidn=yes LIBS="${LIBS} -lidn"], []), [])
+if test "$libidn" != "yes"; then
+ AC_MSG_FAILURE([GNUnet requires libidn.
+libidn-1.13 should be sufficient, newer versions work too.])
fi
AC_MSG_RESULT($libidn)