Add --with-initscript to allow us to omit the initscript.

This commit is contained in:
Mke Brady
2015-04-22 21:07:15 +01:00
parent 2e7910326e
commit 85ca93176d
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -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
+6
View File
@@ -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.], [