[systemd-devel] [PATCH 5/5] build-sys: add --enable-udev configure option

William Hubbs w.d.hubbs at gmail.com
Tue Jun 12 10:52:42 PDT 2012


---
 Makefile.am  |    3 +++
 configure.ac |    8 ++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 55ee80a..7cd68d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -237,7 +237,10 @@ SED_PROCESS = \
 		< $< > $@ || rm $@
 
 include Makefile-shared.am
+
+if ENABLE_UDEV
 include Makefile-udev.am
+endif
 
 if ENABLE_SYSTEMD
 include Makefile-systemd.am
diff --git a/configure.ac b/configure.ac
index dbbb6e0..e13eba2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -699,6 +699,13 @@ if test "x$enable_systemd" != "xno"; then
 fi
 AM_CONDITIONAL(ENABLE_SYSTEMD, [test "$have_systemd" = "yes"])
 
+have_udev=no
+AC_ARG_ENABLE(udev, AS_HELP_STRING([--disable-udev], [Disable building udev]))
+if test "x$enable_udev" != "xno"; then
+        have_udev=yes
+fi
+AM_CONDITIONAL(ENABLE_UDEV, [test "$have_udev" = "yes"])
+
 AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
 AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
 AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
@@ -742,6 +749,7 @@ AC_MSG_RESULT([
         localed:                 ${have_localed}
         coredump:                ${have_coredump}
         systemd:                 ${have_systemd}
+        udev:                    ${have_udev}
         firmware path:           ${FIRMWARE_PATH}
         usb.ids:                 ${USB_DATABASE}
         pci.ids:                 ${PCI_DATABASE}
-- 
1.7.3.4



More information about the systemd-devel mailing list