summaryrefslogtreecommitdiff
path: root/src/udev/Makefile.am
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2012-11-19 11:49:42 -0500
committerRichard Yao <ryao@cs.stonybrook.edu>2012-11-23 01:55:28 -0500
commitc4d1ce9b754e6eed60d2625cc4fff224898aa5d5 (patch)
treeb49d37e4dd0fc0c69686abf5c18ed8eb11369011 /src/udev/Makefile.am
parent135d61df6f66d0c0e67aec62f76ee7f2a409a3ce (diff)
Use libkmod only when requested
We support module loading through modprobe when libkmod is neither available nor wanted. Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src/udev/Makefile.am')
-rw-r--r--src/udev/Makefile.am15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index ab1322a1a2..7ceb31951a 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -6,6 +6,7 @@ udevhomedir = $(udevlibexecdir)
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
+ -DMODPROBE=\"$(MODPROBE)\" \
-DROOTPREFIX=\"$(rootprefix)\" \
-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
-I $(top_srcdir)/src/libudev
@@ -101,13 +102,19 @@ include_HEADERS = \
libudev_core_la_CFLAGS = \
$(AM_CFLAGS) \
- $(BLKID_CFLAGS) \
- $(KMOD_CFLAGS)
+ $(BLKID_CFLAGS)
+
+if HAVE_LIBKMOD
+libudev_core_la_CFLAGS += $(KMOD_CFLAGS)
+endif
libudev_core_la_LIBADD = \
$(top_builddir)/src/libudev/libudev-private.la \
- $(BLKID_LIBS) \
- $(KMOD_LIBS)
+ $(BLKID_LIBS)
+
+if HAVE_LIBKMOD
+libudev_core_la_LIBADD += $(KMOD_LIBS)
+endif
if HAVE_ACL
libudev_core_la_SOURCES += \