config: use automake "dir" pattern for simplification

configdir is where the config file is installed
config_DATA is the filename

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
Gaetan Nadon
2010-05-24 15:50:18 -04:00
parent e4d280dfbd
commit e517ccca6e
2 changed files with 4 additions and 5 deletions

View File

@@ -20,8 +20,7 @@
if HAS_XORG_CONF_DIR
confdir = $(XORG_CONF_DIR)
dist_conf_DATA = 50-synaptics.conf
dist_config_DATA = 50-synaptics.conf
else
EXTRA_DIST = 11-x11-synaptics.fdi

View File

@@ -76,9 +76,9 @@ sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
AC_ARG_WITH(xorg-conf-dir,
AC_HELP_STRING([--with-xorg-conf-dir=DIR],
[Default xorg.conf.d directory [[default=from $PKG_CONFIG xorg-server]]]),
[XORG_CONF_DIR="$withval"],
[XORG_CONF_DIR="$sysconfigdir"])
AC_SUBST(XORG_CONF_DIR)
[configdir="$withval"],
[configdir="$sysconfigdir"])
AC_SUBST(configdir)
AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])
# Define a configure option to enable code debugging