Add option for selecting DNS proxy support
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 3 Jan 2009 11:12:08 +0000 (12:12 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 3 Jan 2009 11:12:08 +0000 (12:12 +0100)
bootstrap-configure
configure.ac
plugins/Makefile.am

index 5abeb4b..3a25cd3 100755 (executable)
@@ -21,6 +21,7 @@ fi
                --enable-udhcp \
                --enable-dhclient \
                --enable-resolvconf \
+               --enable-dnsproxy \
                --enable-novatel \
                --enable-huawei \
                --enable-hso \
index 39dbced..987b817 100644 (file)
@@ -101,6 +101,10 @@ if (test "${enable_resolvconf}" = "yes"); then
 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")
index f2b280c..ac6714d 100644 (file)
@@ -1,7 +1,7 @@
 
 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
@@ -64,8 +64,6 @@ pppd_la_SOURCES = pppd.c
 pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
 endif
 
-dnsproxy_la_SOURCES = dnsproxy.c
-
 if RESOLVCONF
 plugin_LTLIBRARIES += resolvconf.la
 
@@ -73,6 +71,12 @@ resolvconf_la_SOURCES = resolvconf.c
 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