From 5674c41b3ea4eac8fe8f4f74bd978699bc847332 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Tue, 27 Oct 2009 05:52:16 -0700 Subject: extras/init.d: make install directory configurable with --with-initdir --- configure.ac | 6 ++++++ extras/init.d/Makefile.am | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7243735c..9f1e2083 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/extras/init.d/Makefile.am b/extras/init.d/Makefile.am index 404c7326..6f479e7c 100644 --- a/extras/init.d/Makefile.am +++ b/extras/init.d/Makefile.am @@ -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) -- cgit