summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-05-05 21:59:24 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-05 22:03:52 +0200
commitd7c114c00030309435fc56c77c8578a25d228ebe (patch)
tree109523f4e06c59157cad7dfa68ff3f6050aa0f32 /configure.ac
parent6c78be3c3c63b59f18311b2d2b0e8d745f6ba131 (diff)
build-sys: add Arch Linux support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cc0ee11722..95456cd0bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,7 @@ if test "z$with_distro" = "z"; then
AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
+ AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
fi
if test "z$with_distro" = "z"; then
with_distro=`uname -s`
@@ -113,6 +114,13 @@ case $with_distro in
special_syslog_service=sysklogd.service
AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian/Ubuntu])
;;
+ arch)
+ SYSTEM_SYSVINIT_PATH=/etc/rc.d
+ SYSTEM_SYSVRCND_PATH=/etc
+ special_dbus_service=dbus.service
+ special_syslog_service=syslog-ng.service
+ AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
+ ;;
none)
SYSTEM_SYSVINIT_PATH=/fix/the/configure/script
SYSTEM_SYSVRCND_PATH=/fix/the/configure/script
@@ -130,6 +138,7 @@ AC_SUBST(SYSTEM_SYSVRCND_PATH)
AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
+AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
AC_DEFINE_UNQUOTED(SPECIAL_DBUS_SERVICE, ["$special_dbus_service"], [D-Bus service name])
AC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$special_syslog_service"], [syslog service name])