fi
AM_CONDITIONAL(RESOLVCONF, test "${enable_resolvconf}" = "yes")
+AC_ARG_ENABLE(dnsproxy, AC_HELP_STRING([--enable-dnsproxy],
+ [enable DNS proxy support]), [enable_dnsproxy=${enableval}])
+AM_CONDITIONAL(DNSPROXY, test "${enable_dnsproxy}" = "yes")
+
AC_ARG_ENABLE(novatel, AC_HELP_STRING([--enable-novatel],
[enable Novatel support]), [enable_novatel=${enableval}])
AM_CONDITIONAL(NOVATEL, test "${enable_novatel}" = "yes")
plugindir = $(libdir)/connman/plugins
-plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la dnsproxy.la
+plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la
if LOOPBACK
plugin_LTLIBRARIES += loopback.la
pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
endif
-dnsproxy_la_SOURCES = dnsproxy.c
-
if RESOLVCONF
plugin_LTLIBRARIES += resolvconf.la
resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
endif
+if DNSPROXY
+plugin_LTLIBRARIES += dnsproxy.la
+
+dnsproxy_la_SOURCES = dnsproxy.c
+endif
+
if POLKIT
plugin_LTLIBRARIES += polkit.la