From da71d1359c1335997595935dbaa07c5747231861 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 1 Mar 2009 05:35:18 -0800 Subject: Added proper handling for the init scripts for (Debian, Ubuntu, SuSE, Redhat), SuSE init script also added. * Init scripts added for Debian, Redhat, SuSE distribution, each are installed by checking each distribution specific. Tested on 1. Debian, Ubuntu. 2. Redhat, CentOS. 3. OpenSUSE. Signed-off-by: Anand V. Avati --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c5e0da84a..d6fadbe54 100644 --- a/configure.ac +++ b/configure.ac @@ -490,6 +490,25 @@ if test "x${have_fdatasync}" = "xyes"; then AC_DEFINE(HAVE_FDATASYNC, 1, [define if fdatasync exists]) fi +# Check the distribution where you are compiling glusterfs on + +GF_DISTRIBUTION= +AC_CHECK_FILE([/etc/debian_version]) +AC_CHECK_FILE([/etc/SuSE-release]) +AC_CHECK_FILE([/etc/redhat-release]) + +if test "x$ac_cv_file__etc_debian_version" = "xyes"; then + GF_DISTRIBUTION=Debian +fi +if test "x$ac_cv_file__etc_SuSE_release" = "xyes"; then + GF_DISTRIBUTION=SuSE +fi +if test "x$ac_cv_file__etc_redhat_release" = "xyes"; then + GF_DISTRIBUTION=Redhat +fi + +AC_SUBST(GF_DISTRIBUTION) + GF_HOST_OS="" GF_LDFLAGS="-rdynamic" -- cgit