summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-05 15:21:55 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-05 15:21:55 +0200
commit1437556645417e6302862845e7ebcbd4c9908357 (patch)
tree662be90dc931960216785078c73d653786cd8c0e /configure.ac
parent42907c797b3bee02478f17bdb1f20d69c11e7c9f (diff)
build: fix libidn2 detection if prefix given (#5948)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6dc914c12..18c309aca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1160,8 +1160,12 @@ AS_IF([test x_$withval = x_yes],
my_with_libidn2=0]))],
[AS_IF([test x_$withval != x_no],
[CFLAGS="$CFLAGS -I$withval/include"
- LDFLAGS="$LDFLAGS -L$withval/lib"],
- [my_with_libidn2=0])])
+ LDFLAGS="$LDFLAGS -L$withval/lib"
+ AC_CHECK_HEADERS([idn2/idn2.h],
+ AC_MSG_NOTICE([Found idn2/idn2.h]),
+ [AC_MSG_NOTICE([Failed to find idn2.h])
+ my_with_libidn2=0])],
+ [my_with_libidn2=0])])
AC_MSG_CHECKING([if libidn can be used])
# Check for LIBIDNs