X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=c1c51ad802a8332c50357d8a028abc6fdfba21bc;hb=5a436c3339d4caf3af1175ed41fcaab75206a59c;hp=ba09dbac2aa9ad4e81eaf02948a6bbcd09d95c15;hpb=f15ecabbb38a6e332eaf97194534e4af07e7b646;p=util-vserver.git diff --git a/configure.ac b/configure.ac index ba09dba..c1c51ad 100644 --- a/configure.ac +++ b/configure.ac @@ -336,6 +336,26 @@ dnl dnl ######################## +dnl Check what distro this is, use Gentoo initscripts if appropriate +AC_MSG_CHECKING([for host initscripts]) +AC_ARG_WITH(initscripts, [force host initscripts (valid values are: gentoo, sysv)], [ + case "$withval" in + gentoo) ensc_with_init=gentoo;; + sysv) ensc_with_init=sysv;; + *) AC_MSG_ERROR([invalid initscripts value, only gentoo and sysv are supported]);; + esac + ], [ + if test -e /etc/gentoo-release; then + ensc_with_init=gentoo + else + ensc_with_init=sysv + fi + ]) +AC_MSG_RESULT([$ensc_with_init]) +AM_CONDITIONAL(HAVE_GENTOO_INIT, test x"$ensc_with_init" = xgentoo) +AM_CONDITIONAL(HAVE_SYSV_INIT, test x"$ensc_with_init" = xsysv) + + dnl BIG HACK! Do some autodetection here! AC_DEFINE(UTMP_GID, [22], [The utmp gid-number])