summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--configure.ac5
2 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 46c376b5d9..e0fe7fc814 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,6 @@ DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
SUBDIRS = \
src \
rules \
- hwdb \
docs \
test
@@ -12,3 +11,9 @@ if ENABLE_MANPAGES
SUBDIRS += \
man
endif
+
+if ENABLE_HWDB
+SUBDIRS += \
+ hwdb
+endif
+
diff --git a/configure.ac b/configure.ac
index 10e5e21097..fccb181379 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,6 +281,11 @@ AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
# ------------------------------------------------------------------------------
+AC_ARG_ENABLE([hwdb], AS_HELP_STRING([--enable-hwdb],[install hwdb.d files]),[],[enable_hwdb=yes])
+AM_CONDITIONAL(ENABLE_HWDB, [test "x$enable_hwdb" = "xyes"])
+
+# ------------------------------------------------------------------------------
+
AC_CONFIG_FILES([Makefile
docs/Makefile
docs/gudev/Makefile