extras/init.d: make install directory configurable with --with-initdir
This commit is contained in:
parent
fad22625b4
commit
5674c41b3e
@ -141,6 +141,12 @@ AC_ARG_WITH(mountutildir,
|
||||
[mountutildir='/sbin'])
|
||||
AC_SUBST(mountutildir)
|
||||
|
||||
AC_ARG_WITH(initdir,
|
||||
[ --with-initdir=DIR init.d scripts in DIR @<:@/etc/init.d@:>@],
|
||||
[initdir=$withval],
|
||||
[initdir='/etc/init.d'])
|
||||
AC_SUBST(initdir)
|
||||
|
||||
# LEX needs a check
|
||||
AC_PROG_LEX
|
||||
if test "x${LEX}" != "xflex" -a "x${FLEX}" != "xlex"; then
|
||||
|
@ -3,7 +3,7 @@ EXTRA_DIST = glusterfsd-Debian glusterfsd-Redhat glusterfsd-SuSE glusterfs-serve
|
||||
|
||||
CLEANFILES =
|
||||
|
||||
initdir = /etc/init.d
|
||||
initdir = @initdir@
|
||||
|
||||
$(GF_DISTRIBUTION):
|
||||
$(mkdir_p) $(DESTDIR)$(initdir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user