summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2017-02-27 00:32:43 +0100
committerMarco d'Itri <md@linux.it>2017-02-27 00:32:43 +0100
commit8ed6d730959b1f988dd43a511c40b9419bb2b0db (patch)
tree10168e7c8e0e1e77cd2cdc32b2c74e70c6ee2d34 /Makefile
parentcf61394ded7532b339f22411cf048c83a70277bb (diff)
downloadwhois-8ed6d730959b1f988dd43a511c40b9419bb2b0db.tar.gz
Implement support for libidn2
Contributed by Tim Rühsen. Closes #49 from Github.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 28eb36f..74ccb00 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,15 @@ ifdef LOCALEDIR
DEFS += -DLOCALEDIR=\"$(BASEDIR)$(prefix)/share/locale\"
endif
+ifdef HAVE_LIBIDN2
+whois_LDADD += -lidn2
+DEFS += -DHAVE_LIBIDN2
+else
ifdef HAVE_LIBIDN
whois_LDADD += -lidn
DEFS += -DHAVE_LIBIDN
endif
+endif
ifdef HAVE_ICONV
whois_OBJECTS += simple_recode.o