summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-05-30 08:50:28 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-05-30 08:50:28 -0400
commitebb37f6a47f64314a81b40e3befbe3fc9ced8f4a (patch)
treeab2691599c1fc5ba0db61c5108d87557632c3cb1
parent53997d40dd7f1bbd7f40dcc5602f971cce978a12 (diff)
configure.ac: add --enable-hwdb option. Address issue #111.eudev/v3.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-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