]> git.meshlink.io Git - catta/commitdiff
* Support for Mandriva init.d from Oliver Blin
authorSebastien Estienne <sebastien.estienne@gmail.com>
Fri, 20 Jan 2006 20:59:12 +0000 (20:59 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Fri, 20 Jan 2006 20:59:12 +0000 (20:59 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1087 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

configure.ac
initscript/Makefile.am

index 42836e7c456fa0c7ceda1964c713b8f900113469..e412a2f95fb63d41302833781f43167230d4d745 100644 (file)
@@ -115,13 +115,14 @@ AC_TRY_COMPILE([#include <netinet/in.h>], [
 #
 # Detecting the linux distribution for specific things like init scripts.
 #
-AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of debian, gentoo, archlinux, fedora, darwin, netbsd, freebsd or none]))
+AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd or none]))
 if test "z$with_distro" = "z"; then
     AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
     AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
     AC_CHECK_FILE(/etc/arch-release,with_distro="archlinux")
     AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
     AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
+    AC_CHECK_FILE(/etc/mandriva-release,with_distro="mandriva")
     if test "z$with_distro" = "z"; then
         with_distro=`uname -s`
     fi
@@ -129,7 +130,7 @@ fi
 with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
 
 case $with_distro in
-    debian|gentoo|archlinux|suse|fedora|darwin|freebsd|none)
+    debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|none)
      ;;
     netbsd)
      AC_MSG_WARN([Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)])
@@ -147,6 +148,7 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
 AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
 AM_CONDITIONAL(TARGET_ARCHLINUX, test x"$with_distro" = xarchlinux)
 AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
+AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
 AM_CONDITIONAL(TARGET_DARWIN, test x"$with_distro" = xdarwin)
 AM_CONDITIONAL(TARGET_NETBSD, test x"$with_distro" = xnetbsd)
 AM_CONDITIONAL(TARGET_FREEBSD, test x"$with_distro" = xfreebsd)
@@ -744,6 +746,7 @@ initscript/gentoo/Makefile
 initscript/archlinux/Makefile
 initscript/suse/Makefile
 initscript/fedora/Makefile
+initscript/mandriva/Makefile
 initscript/darwin/Makefile
 initscript/freebsd/Makefile
 avahi-dnsconfd/Makefile
index 5511fe7de12370ce140f21ab3cdf9e6f02a634cf..dbce3a2a5d5a5ce35a034c98334aa6296e384047 100644 (file)
@@ -39,6 +39,10 @@ if TARGET_FEDORA
 SUBDIRS += fedora
 endif
 
+if TARGET_MANDRIVA
+SUBDIRS += mandriva
+endif
+
 if TARGET_DARWIN
 SUBDIRS += darwin
 endif