configure: add --with-lock-dir option

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2014-05-07 09:19:36 +02:00
parent 2607d8deee
commit 24a7b2fec2
2 changed files with 16 additions and 3 deletions

View file

@ -7,9 +7,16 @@ man_MANS += alsactl_init.7
endif endif
EXTRA_DIST=alsactl.1 alsactl_init.xml EXTRA_DIST=alsactl.1 alsactl_init.xml
alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c monitor.c alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c \
alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\" monitor.c
noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU \
-DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" \
-DSYS_LOCKPATH=\"$(ASOUND_LOCK_DIR)\" \
-DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c \
init_utils_run.c init_sysfs.c
udevrules_DATA = \ udevrules_DATA = \
90-alsa-restore.rules 90-alsa-restore.rules

View file

@ -330,6 +330,12 @@ AC_ARG_WITH([asound-state-dir],
[ASOUND_STATE_DIR="/var/lib/alsa"]) [ASOUND_STATE_DIR="/var/lib/alsa"])
AC_SUBST(ASOUND_STATE_DIR) AC_SUBST(ASOUND_STATE_DIR)
AC_ARG_WITH([alsactl-lock-dir],
AS_HELP_STRING([--with-alsactl-lock-dir=DIR], [Directory to place lock files in]),
[ASOUND_LOCK_DIR="$withval"],
[ASOUND_LOCK_DIR="/var/lock"])
AC_SUBST(ASOUND_LOCK_DIR)
AC_ARG_WITH([alsactl-pidfile-dir], AC_ARG_WITH([alsactl-pidfile-dir],
AS_HELP_STRING([--with-alsactl-pidfile-dir=DIR], [Directory to place alsactl.pid file in]), AS_HELP_STRING([--with-alsactl-pidfile-dir=DIR], [Directory to place alsactl.pid file in]),
[ALSACTL_PIDFILE_DIR="$withval"], [ALSACTL_PIDFILE_DIR="$withval"],