# See distro_mapping.txt for other options
$(eval $(call setvar_dir,CONFIG_LEAF_DIR,,/etc/sysconfig,sysconfig,default))
-$(eval $(call setvar_dir,INITD_DIR,/etc,/rc.d/init.d,/rc.d/init.d,/init.d))
ifneq ($(EXTRA_PREFIX),)
EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
XEN_LIB_STORED := @XEN_LIB_STORED@
CONFIG_DIR := @CONFIG_DIR@
+INITD_DIR := @INITD_DIR@
XEN_LOCK_DIR := @XEN_LOCK_DIR@
XEN_PAGING_DIR := @XEN_PAGING_DIR@
XEN_LOCK_DIR
XEN_SCRIPT_DIR
XEN_CONFIG_DIR
+INITD_DIR
CONFIG_DIR
XENFIRMWAREDIR
PRIVATE_BINDIR
ac_subst_files=''
ac_user_opts='
enable_option_checking
+with_initddir
enable_xen
enable_tools
enable_stubdom
--enable-stubdom Enable build and install of stubdom
--disable-docs Disable build and install of docs
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-initddir=DIR Path to directory with sysv runlevel scripts.
+ [SYSCONFDIR/init.d]
+
Report bugs to <xen-devel@lists.xen.org>.
Xen Hypervisor home page: <http://www.xen.org/>.
_ACEOF
esac
fi
+
+# Check whether --with-initddir was given.
+if test "${with_initddir+set}" = set; then :
+ withval=$with_initddir; initddir_path=$withval
+else
+ case "$host_os" in
+ *linux*)
+ if test -d $sysconfdir/rc.d/init.d ; then
+ initddir_path=$sysconfdir/rc.d/init.d
+ else
+ initddir_path=$sysconfdir/init.d
+ fi
+ ;;
+ *)
+ initddir_path=$sysconfdir/rc.d
+ ;;
+ esac
+fi
+
+
BINDIR=$prefix/bin
CONFIG_DIR=$sysconfdir
+INITD_DIR=$initddir_path
+
+
XEN_CONFIG_DIR=$CONFIG_DIR/xen
scripts at run-time. If the Red Hat directory exists, it is used;
otherwise the Debian one is used.
-You can override this by setting the variables in the environment or
-your ".config" (which is included by .config).
+The INITD_DIR path can be changed with configure --with-initddir=DIR.
+The CONFIG_LEAF_DIR path can be changed by setting the variables in
+the environment or your ".config" (which is included by Config.mk).
To add support for new distributions that don't use the above locations,
one must grep for the above elements and add appropriate checks.
esac
fi
+AC_ARG_WITH([initddir],
+ AS_HELP_STRING([--with-initddir=DIR],
+ [Path to directory with sysv runlevel scripts. [SYSCONFDIR/init.d]]),
+ [initddir_path=$withval],
+ [case "$host_os" in
+ *linux*)
+ if test -d $sysconfdir/rc.d/init.d ; then
+ initddir_path=$sysconfdir/rc.d/init.d
+ else
+ initddir_path=$sysconfdir/init.d
+ fi
+ ;;
+ *)
+ initddir_path=$sysconfdir/rc.d
+ ;;
+ esac])
+
BINDIR=$prefix/bin
AC_SUBST(BINDIR)
CONFIG_DIR=$sysconfdir
AC_SUBST(CONFIG_DIR)
+INITD_DIR=$initddir_path
+AC_SUBST(INITD_DIR)
+
XEN_CONFIG_DIR=$CONFIG_DIR/xen
AC_SUBST(XEN_CONFIG_DIR)
XEN_LOCK_DIR
XEN_SCRIPT_DIR
XEN_CONFIG_DIR
+INITD_DIR
CONFIG_DIR
XENFIRMWAREDIR
PRIVATE_BINDIR
ac_user_opts='
enable_option_checking
enable_largefile
+with_initddir
enable_githttp
enable_monitors
enable_ocamltools
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-initddir=DIR Path to directory with sysv runlevel scripts.
+ [SYSCONFDIR/init.d]
--with-system-qemu[=PATH]
Use system supplied qemu PATH or qemu (taken from
$PATH) as qemu-xen device model instead of building
esac
fi
+
+# Check whether --with-initddir was given.
+if test "${with_initddir+set}" = set; then :
+ withval=$with_initddir; initddir_path=$withval
+else
+ case "$host_os" in
+ *linux*)
+ if test -d $sysconfdir/rc.d/init.d ; then
+ initddir_path=$sysconfdir/rc.d/init.d
+ else
+ initddir_path=$sysconfdir/init.d
+ fi
+ ;;
+ *)
+ initddir_path=$sysconfdir/rc.d
+ ;;
+ esac
+fi
+
+
BINDIR=$prefix/bin
CONFIG_DIR=$sysconfdir
+INITD_DIR=$initddir_path
+
+
XEN_CONFIG_DIR=$CONFIG_DIR/xen