diff options
-rwxr-xr-x | bootstrap-configure | 1 | ||||
-rw-r--r-- | configure.ac | 15 | ||||
-rw-r--r-- | plugins/Makefile.am | 7 |
3 files changed, 20 insertions, 3 deletions
diff --git a/bootstrap-configure b/bootstrap-configure index c9d8ebe0..5abeb4b1 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -20,6 +20,7 @@ fi --enable-wifi \ --enable-udhcp \ --enable-dhclient \ + --enable-resolvconf \ --enable-novatel \ --enable-huawei \ --enable-hso \ diff --git a/configure.ac b/configure.ac index 2a4900c9..9b70b041 100644 --- a/configure.ac +++ b/configure.ac @@ -86,7 +86,20 @@ if (test "${enable_dhclient}" = "yes"); then fi AM_CONDITIONAL(DHCLIENT, test "${enable_dhclient}" = "yes") -AC_PATH_PROG(RESOLVCONF, [resolvconf], [], $PATH:/sbin:/usr/sbin) +AC_ARG_WITH(resolvconf, AC_HELP_STRING([--with-resolvconf=PROGRAM], + [specific location of resolvconf binary]), [path_resolvconf=${withval}]) + +AC_ARG_ENABLE(RESOLVCONF, AC_HELP_STRING([--enable-resolvconf], + [enable resolvconf support]), [enable_resolvconf=${enableval}]) +if (test "${enable_resolvconf}" = "yes"); then + if (test -z "${path_resolvconf}"); then + AC_PATH_PROG(RESOLVCONF, [resolvconf], [], $PATH:/sbin:/usr/sbin) + else + UDHCPC="${path_resolvconf}" + AC_SUBST(RESOLVCONF) + fi +fi +AM_CONDITIONAL(RESOLVCONF, test "${enable_resolvconf}" = "yes") AC_ARG_ENABLE(novatel, AC_HELP_STRING([--enable-novatel], [enable Novatel support]), [enable_novatel=${enableval}]) diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 1d9c85a3..4f72e8a3 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,8 +1,7 @@ plugindir = $(libdir)/connman/plugins -plugin_LTLIBRARIES = ethernet.la bluetooth.la \ - ipv4.la dnsproxy.la resolvconf.la +plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la dnsproxy.la if LOOPBACK plugin_LTLIBRARIES += loopback.la @@ -66,8 +65,12 @@ endif dnsproxy_la_SOURCES = dnsproxy.c +if RESOLVCONF +plugin_LTLIBRARIES += resolvconf.la + resolvconf_la_SOURCES = resolvconf.c resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\" +endif if POLKIT plugin_LTLIBRARIES += polkit.la |