build: udev rules must be created when building from git
https://bugs.freedesktop.org/show_bug.cgi?id=59076
This commit is contained in:
parent
0b2d33c712
commit
02509e1073
1 changed files with 4 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue