2020-11-18 21:22:58 +01:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2024-02-07 13:30:16 +01:00
|
|
|
@@ -43,14 +43,6 @@ ifdef HAVE_LIBIDN
|
2020-11-30 02:16:49 +01:00
|
|
|
$(error Please fix your build system to stop defining HAVE_LIBIDN!)
|
2020-11-18 21:22:58 +01:00
|
|
|
endif
|
2020-11-30 02:16:49 +01:00
|
|
|
|
|
|
|
-ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),)
|
2020-11-18 21:22:58 +01:00
|
|
|
-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2)
|
|
|
|
-DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2)
|
2020-11-30 02:16:49 +01:00
|
|
|
-else ifeq ($(shell $(PKG_CONFIG) --exists 'libidn' || echo NO),)
|
|
|
|
-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn)
|
|
|
|
-DEFS += -DHAVE_LIBIDN $(shell $(PKG_CONFIG) --cflags libidn)
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
ifdef HAVE_ICONV
|
|
|
|
whois_OBJECTS += simple_recode.o
|
|
|
|
DEFS += -DHAVE_ICONV
|