diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | bootstrap-configure | 1 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | plugins/Makefile.am | 6 |
4 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index baa7ebfe..57b99799 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,6 +7,7 @@ pkgconfig_DATA = connman.pc DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \ --enable-loopback \ + --enable-ethernet \ --enable-wifi \ --enable-udhcp \ --enable-dhclient \ diff --git a/bootstrap-configure b/bootstrap-configure index 3a25cd3b..aa133719 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -17,6 +17,7 @@ fi --localstatedir=/var \ --sysconfdir=/etc \ --enable-loopback \ + --enable-ethernet \ --enable-wifi \ --enable-udhcp \ --enable-dhclient \ diff --git a/configure.ac b/configure.ac index 987b8175..24ee83ff 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,10 @@ AC_ARG_ENABLE(loopback, AC_HELP_STRING([--enable-loopback], [enable loopback support]), [enable_loopback=${enableval}]) AM_CONDITIONAL(LOOPBACK, test "${enable_loopback}" = "yes") +AC_ARG_ENABLE(ethernet, AC_HELP_STRING([--enable-ethernet], + [enable Ethernet support]), [enable_ethernet=${enableval}]) +AM_CONDITIONAL(ETHERNET, test "${enable_ethernet}" = "yes") + AC_ARG_ENABLE(wifi, AC_HELP_STRING([--enable-wifi], [enable WiFi support]), [enable_wifi=${enableval}]) if (test "${enable_wifi}" = "yes"); then diff --git a/plugins/Makefile.am b/plugins/Makefile.am index ac6714dd..e90f4944 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,7 +1,7 @@ plugindir = $(libdir)/connman/plugins -plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la +plugin_LTLIBRARIES = bluetooth.la ipv4.la if LOOPBACK plugin_LTLIBRARIES += loopback.la @@ -9,7 +9,11 @@ plugin_LTLIBRARIES += loopback.la loopback_la_SOURCES = loopback.c endif +if ETHERNET +plugin_LTLIBRARIES += ethernet.la + ethernet_la_SOURCES = ethernet.c inet.h inet.c +endif if WIFI plugin_LTLIBRARIES += wifi.la |