From 02509e10731b503b88ce0896ba6bb4c6c9e38679 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 7 Jan 2013 12:36:45 +0100 Subject: [PATCH] build: udev rules must be created when building from git https://bugs.freedesktop.org/show_bug.cgi?id=59076 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 3c779f4..6737256 100644 --- a/configure.ac +++ b/configure.ac @@ -173,6 +173,10 @@ AC_ARG_ENABLE(udev-rules, [ENABLE_UDEV_RULES=yes]) dnl Default value AM_CONDITIONAL(ENABLE_UDEV_RULES, test x$ENABLE_UDEV_RULES = "xyes") +if test $ENABLE_UDEV_RULES = no && test -d .git/ ; then + AC_MSG_ERROR(--disable-udev-rules can only be used when building from tarballs) +fi + AC_ARG_WITH(udev-rules-dir, AS_HELP_STRING([--with-udev-rules-dir=DIR],[Installation path for udev rules @<:@auto@:>@]), [ac_with_udev_rules_dir=$withval],