x.x.x
+ Additions:
+ * Addition of an ldns-config script which gives cflags and libs
+ values, for use in configure scripts for applications that use
+ use ldns. Can be disabled with ./configure --disable-ldns-config
+
Bugfixes:
* ldns_is_rrset did not go through the complete rrset, but
only compared the first two records. Thanks to Olafur
DATE = $(shell date +%Y%m%d)
LIBTOOL = $(libtool) --tag=CC
ACLOCAL_AMFLAGS = -Im4
+INSTALL_LDNS_CONFIG = @INSTALL_LDNS_CONFIG@
LINT = splint
LINTFLAGS = +quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -D__u16=uint16_t -fixedformalarray
cat $(srcdir)/ldns/*.h | $(srcdir)/doc/doxyparse.pl -m $(srcdir)/doc/function_manpages 2>&1 | \
grep -v ^doxygen | grep -v ^cat > doc/ldns_manpages
-install: install-h install-lib install-manpages
+install: install-h install-lib install-config install-manpages
uninstall: uninstall-manpages uninstall-h uninstall-lib
destclean: uninstall
+install-config:
+ if [ $(INSTALL_LDNS_CONFIG) = "yes" ] ; then \
+ $(INSTALL) -d $(DESTDIR)$(bindir); \
+ $(INSTALL) -m 755 packaging/ldns-config $(DESTDIR)$(bindir)/; \
+ fi
+
install-manpages: manpages
${INSTALL} -d $(DESTDIR)$(mandir)/man3
cp -Rp doc/man/man3/* $(DESTDIR)$(mandir)/man3/
;;
esac
+# add option to disable installation of ldns-config script
+AC_ARG_ENABLE(ldns-config, [ --disable-ldns-config disable installation of ldns-config (default=enabled)],
+ enable_ldns_config=$enableval, enable_ldns_config=yes)
+if test "x$enable_ldns_config" = xyes; then
+ INSTALL_LDNS_CONFIG="yes"
+else
+ INSTALL_LDNS_CONFIG="no"
+fi
+AC_SUBST(INSTALL_LDNS_CONFIG)
# add option to disable the evil rpath
dnl Check whether to use rpath or not