mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 03:56:31 +01:00
configure: add --with-lock-dir option
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2607d8deee
commit
24a7b2fec2
2 changed files with 16 additions and 3 deletions
|
@ -7,9 +7,16 @@ man_MANS += alsactl_init.7
|
|||
endif
|
||||
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_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -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
|
||||
alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c \
|
||||
monitor.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 = \
|
||||
90-alsa-restore.rules
|
||||
|
|
|
@ -330,6 +330,12 @@ AC_ARG_WITH([asound-state-dir],
|
|||
[ASOUND_STATE_DIR="/var/lib/alsa"])
|
||||
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],
|
||||
AS_HELP_STRING([--with-alsactl-pidfile-dir=DIR], [Directory to place alsactl.pid file in]),
|
||||
[ALSACTL_PIDFILE_DIR="$withval"],
|
||||
|
|
Loading…
Reference in a new issue