Add --with-initscript to allow us to omit the initscript.
This commit is contained in:
@@ -38,6 +38,9 @@ if USE_DNS_SD
|
||||
shairport_sync_SOURCES += mdns_dns_sd.c
|
||||
endif
|
||||
|
||||
if INSTALL_INITSCRIPT
|
||||
install-exec-hook:
|
||||
[ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync /etc/init.d/
|
||||
update-rc.d shairport-sync defaults 90 10
|
||||
endif
|
||||
|
||||
|
||||
@@ -39,6 +39,12 @@ PKG_CHECK_MODULES(
|
||||
[LIBCONFIG], [libconfig],
|
||||
[LIBS="${LIBCONFIG_LIBS} ${LIBS}"
|
||||
AC_DEFINE([HAVE_LIBCONFIG],[1],[Define to 1 if you have libconfig])])
|
||||
|
||||
# Check to see if we should include the initscript
|
||||
|
||||
AC_ARG_WITH([initscript],
|
||||
[ --with-initscript = include a startup script], ,[with_initscript=1])
|
||||
AM_CONDITIONAL([INSTALL_INITSCRIPT], [test "x$with_initscript" = "x1"])
|
||||
|
||||
# Look for piddir flag
|
||||
AC_ARG_WITH(piddir, [ --with-piddir=<pathname> Specify a pathname to a directory in which to write the PID file.], [
|
||||
|
||||
Reference in New Issue
Block a user