Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
alsa-utils.948
0013-configure-detect-udevdir-via-pkg-config-fa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0013-configure-detect-udevdir-via-pkg-config-fallback-to-.patch of Package alsa-utils.948
From 7d0c2801b3395d8dd4d46e9a1eb2491dde8a053c Mon Sep 17 00:00:00 2001 From: Ivailo Monev <xakepa10@gmail.com> Date: Sat, 16 Nov 2013 14:00:19 +0000 Subject: [PATCH] configure: detect udevdir via pkg-config, fallback to /lib/udev/rules.d Signed-off-by: Ivailo Monev <xakepa10@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> --- configure.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 3ae320926a1c..60da1fa680ba 100644 --- a/configure.in +++ b/configure.in @@ -120,8 +120,14 @@ AM_CONDITIONAL(USE_XMLTO, test x"$xmlto" = xyes) AC_ARG_WITH( [udev-rules-dir], - AS_HELP_STRING([--with-udev-rules-dir],[Directory where to install udev rules to (defaults to /lib/udev/rules.d)]), - [udevrulesdir=$withval], [udevrulesdir="/lib/udev/rules.d"]) + AS_HELP_STRING([--with-udev-rules-dir=DIR],[Directory where to install udev rules to (default=auto)]), + [udevrulesdir="$withval"], + [udevdir=$($PKG_CONFIG udev --variable=udevdir) + if test "x$udevdir" = "x"; then + udevrulesdir="/lib/udev/rules.d" + else + udevrulesdir="$udevdir/rules.d" + fi]) AC_SUBST(udevrulesdir) dnl Checks for header files. -- 1.8.4.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor