extras/init.d: make install directory configurable with --with-initdir

This commit is contained in:
Anand V. Avati 2009-10-27 05:52:16 -07:00
parent fad22625b4
commit 5674c41b3e
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)