]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
When configure detects devel source, does not need to link the lib.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 12 Sep 2006 10:30:56 +0000 (10:30 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 12 Sep 2006 10:30:56 +0000 (10:30 +0000)
It does check for include files.

drill/configure.ac
examples/configure.ac
examples/nsd-test/configure.ac
pcat/configure.ac

index 32670192a6ad92689139fae321e5f3184740a54e..2dba7fd839ad3f88826aa2e7762f4b91ed906838 100644 (file)
@@ -118,19 +118,18 @@ if test -f $ldns_dev_dir/ldns/util.h && \
        LDNSDIR="$ldns_dev_dir"
 else
        AC_MSG_RESULT([no])
+       AC_CHECK_LIB(ldns, ldns_rr_new,, [
+                       AC_MSG_ERROR([Can't find ldns library])
+               ]
+       )
 fi
 
-AC_CHECK_LIB(ldns, ldns_rr_new,, [
-               AC_MSG_ERROR([Can't find ldns library])
-       ]
-)
-
 AC_SUBST(LDNSDIR)
 
 AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATHNAME],[]))
 
 AC_CHECK_HEADER(ldns/ldns.h,,  [
-       AC_MSG_ERROR([Can't find ldns headers])
+       AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source)])
        ], [AC_INCLUDES_DEFAULT]
 )
 AC_CHECK_FUNCS(isblank)
index 12b10927084ebe3c0d00edf147c418954a66fa2a..4f14e8ad91050e8fb2c9114445df7f7494ca3382 100644 (file)
@@ -95,17 +95,16 @@ if test -f $ldns_dev_dir/ldns/util.h && \
        LDNSDIR="$ldns_dev_dir"
 else
        AC_MSG_RESULT([no])
+       AC_CHECK_LIB(ldns, ldns_rr_new,, [
+                       AC_MSG_ERROR([Can't find ldns library])
+               ]
+       )
 fi
 
-AC_CHECK_LIB(ldns, ldns_rr_new,, [
-               AC_MSG_ERROR([Can't find ldns library])
-       ]
-)
-
 AC_SUBST(LDNSDIR)
 
 AC_CHECK_HEADER(ldns/ldns.h,,  [
-       AC_MSG_ERROR([Can't find ldns headers])
+       AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
        ], [AC_INCLUDES_DEFAULT]
 )
 
index 0582dca59ab84f64d7c5d3513b9101e762b7fea0..784fc334c82d0b538f64cb012b4e600a7c981b46 100644 (file)
@@ -94,13 +94,12 @@ if test -f $ldns_dev_dir/ldns/util.h && \
        LDNSDIR="$ldns_dev_dir"
 else
        AC_MSG_RESULT([no])
+       AC_CHECK_LIB(ldns, ldns_rr_new,, [
+                       AC_MSG_ERROR([Can't find ldns library])
+               ]
+       )
 fi
 
-AC_CHECK_LIB(ldns, ldns_rr_new,, [
-               AC_MSG_ERROR([Can't find ldns library])
-       ]
-)
-
 AC_SUBST(LDNSDIR)
 
 AC_CHECK_HEADER(ldns/ldns.h,,  [
index e79146a6d5bf12c214da58a50673f74a5753b639..4459be91c486afc86a388873d6c66f3852644d18 100644 (file)
@@ -91,13 +91,12 @@ if test -f $ldns_dev_dir/ldns/util.h && \
        LDNSDIR="$ldns_dev_dir"
 else
        AC_MSG_RESULT([no])
+       AC_CHECK_LIB(ldns, ldns_rr_new,, [
+                       AC_MSG_ERROR([Can't find ldns library])
+               ]
+       )
 fi
 
-AC_CHECK_LIB(ldns, ldns_rr_new,, [
-               AC_MSG_ERROR([Can't find ldns library])
-       ]
-)
-
 AC_SUBST(LDNSDIR)
 
 AC_CHECK_HEADER(ldns/ldns.h,,  [