]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
makefile supports libobj replacements.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Feb 2007 17:13:18 +0000 (17:13 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Feb 2007 17:13:18 +0000 (17:13 +0000)
check for ldns later - since it breaks compile checks after that.

git-svn-id: file:///svn/unbound/trunk@117 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
configure.ac
doc/Changelog

index b9f6ded11e66a95a7228f110b8373a1e314c41b6..ecc72a9a3f2e60d4a21e57da6b150a8c0df1f0b2 100644 (file)
@@ -50,7 +50,7 @@ INSTALL=$(srcdir)/install-sh
 
 COMMON_SRC=$(wildcard services/*.c util/*.c)
 COMMON_OBJ=$(addprefix $(BUILD),$(COMMON_SRC:.c=.o))
-COMPAT_OBJ=$(addprefix $(BUILD)compat/,$(LIBOBJS)))
+COMPAT_OBJ=$(addprefix $(BUILD)compat/,$(LIBOBJS))
 UNITTEST_SRC=testcode/unitmain.c $(COMMON_SRC)
 UNITTEST_OBJ=$(addprefix $(BUILD),$(UNITTEST_SRC:.c=.o)) $(COMPAT_OBJ)
 DAEMON_SRC=$(wildcard daemon/*.c) $(COMMON_SRC)
index 52524bb333407202d5eb0d7bf200f2a3a7d1a013..63486409ffdb36e581aecd455389d7c062d7f3bc 100644 (file)
@@ -387,17 +387,6 @@ AC_SEARCH_LIBS(event_set, [event])
 AC_CHECK_HEADERS([event.h],,, [AC_INCLUDES_DEFAULT])
 AC_CHECK_FUNCS([event_base_free]) # only in libevent 1.2 and later
 
-AC_ARG_WITH(ldns,
-        AC_HELP_STRING([--with-ldns=PATH        specify prefix of path of ldns library to use])
-       , [ specialldnsdir="$withval"
-       CPPFLAGS="$CPPFLAGS -I$withval/include"
-       LDFLAGS="$LDFLAGS -L$withval -L$withval/lib -lldns"
-       ldnsdir="$withval"
-       AC_SUBST(ldnsdir)
-])
-
-AC_CHECK_LIB(ldns, ldns_rr_new,, [AC_MSG_ERROR([Can't find ldns library])])
-
 # check to see if libraries are needed for these functions.
 AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(nsl, inet_pton)
@@ -418,6 +407,19 @@ if test $ac_cv_func_getaddrinfo = no; then
 AC_LIBOBJ([fake-rfc2553])
 fi
 
+# check this after all other compilation checks, since the linking of the lib
+# may break checks after this.
+AC_ARG_WITH(ldns,
+        AC_HELP_STRING([--with-ldns=PATH        specify prefix of path of ldns library to use])
+       , [ specialldnsdir="$withval"
+       CPPFLAGS="$CPPFLAGS -I$withval/include"
+       LDFLAGS="$LDFLAGS -L$withval -L$withval/lib -lldns"
+       ldnsdir="$withval"
+       AC_SUBST(ldnsdir)
+])
+
+AC_CHECK_LIB(ldns, ldns_rr_new,, [AC_MSG_ERROR([Can't find ldns library])])
+
 AC_DEFINE_UNQUOTED([MAXSYSLOGMSGLEN], [512], [Define to the maximum message length to pass to syslog.])
 
 AH_BOTTOM([
index fe1cd2ae475ca0ec31effbf231e5bdf70f0622d7..0b8ee54733c0d1d36ac448a03604bfb9a37ba075 100644 (file)
@@ -1,6 +1,7 @@
 16 February 2007: Wouter
        - Updated testbed script, works better by using make on remote end.
        - removed check decls, we can compile without them.
+       - makefile supports LIBOBJ replacements.
 
 15 February 2007: Wouter
        - port to FreeBSD 4.11 Dec Alpha. Also works on Solaris 10 sparc64,