summaryrefslogtreecommitdiff
blob: 7f62267e48ea288d38230c7bf01ccd317787c491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- configure.ac
+++ configure.ac
@@ -820,11 +820,13 @@
                CPPFLAGS="${CPPFLAGS} -I$withval/include"
                LDFLAGS="${LDFLAGS} -L$withval/lib"
              fi])
-AC_CHECK_HEADERS(adns.h,
-                AC_CHECK_LIB(adns, adns_init,
-                             [have_adns=yes],
-                             [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]),
-                [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}])
+if test "$with_adns" != "no"; then
+   AC_CHECK_HEADERS(adns.h,
+                   AC_CHECK_LIB(adns, adns_init,
+                                [have_adns=yes],
+                                [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]),
+                   [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}])
+fi
 if test "$have_adns" = "yes"; then
   ADNSLIBS="-ladns" 
 fi