mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver. Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc. Signed-off-by: b-aaz <b-aazbsd.proton.me>
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
|
||||
# During distcheck, system locations (as provided by pkg-config) may
|
||||
# not be writable; provide instead relative locations.
|
||||
DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--with-sdkdir='$${includedir}/xorg' \
|
||||
--with-xorg-conf-dir='$${datadir}/X11/xorg.conf.d'
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg' \
|
||||
--with-xorg-module-dir='$${libdir}/xorg/modules' \
|
||||
--with-xorg-conf-dir='$${datadir}/X11/xorg.conf.d'
|
||||
|
||||
SUBDIRS = include src man tools conf
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
@@ -62,6 +62,7 @@ PKG_CHECK_MODULES(XORG, [inputproto >= 2.1.99.3] [xorg-server >= 1.18] xproto in
|
||||
|
||||
# X Server SDK location is required to install Synaptics header files
|
||||
# This location is also relayed in the xorg-synaptics.pc file
|
||||
PKG_PROG_PKG_CONFIG([0.25])
|
||||
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
|
||||
AC_SUBST([sdkdir])
|
||||
|
||||
@@ -71,9 +72,9 @@ AC_SUBST([sdkdir])
|
||||
# Define a configure option for an alternate input module directory
|
||||
AC_ARG_WITH(xorg-module-dir,
|
||||
AS_HELP_STRING([--with-xorg-module-dir=DIR],
|
||||
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
||||
[Default xorg module directory]),
|
||||
[moduledir="$withval"],
|
||||
[moduledir="$libdir/xorg/modules"])
|
||||
[moduledir=`$PKG_CONFIG --variable=moduledir xorg-server`])
|
||||
inputdir=${moduledir}/input
|
||||
AC_SUBST(inputdir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user