build: add --with-rundir option to configure

There have been reports that Fedora 25 uses /run instead of /var/run.

Add a --with-rundir option ito configure to be able to specify that
directory. Default is still /var/run.

A re-run of autogen.sh is required.

Signed-off-by: Juergen Gross <jgross@suse.com>
[ wei: run autogen.sh ]
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Juergen Gross authored and Wei Liu committed 2017-02-27 11:02:17 +00:00
1 parent 06d9991b0a
commit 0eb11f13d6
4 files changed
+50 -8

No files matched your search

+14 -2
View File
@@ -658,6 +658,7 @@ with_initddir
with_sysconfig_leaf_dir
with_libexec_leaf_dir
with_xen_dumpdir
with_rundir
'
ac_precious_vars='build_alias
host_alias
@@ -1288,6 +1289,8 @@ Optional Packages:
Name of subdirectory in libexecdir to use.
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
[LOCALSTATEDIR/lib/xen/dump]
--with-rundir=DIR Path to directory for runtime data.
[LOCALSTATEDIR/run]
Some influential environment variables:
FIG2DEV Path to fig2dev tool
@@ -1859,6 +1862,15 @@ else
fi
# Check whether --with-rundir was given.
if test "${with_rundir+set}" = set; then :
withval=$with_rundir; rundir_path=$withval
else
rundir_path=$localstatedir/run
fi
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
@@ -1879,7 +1891,7 @@ LIBEXEC_INC=${LIBEXEC}/include
XENFIRMWAREDIR=${LIBEXEC}/boot
XEN_RUN_DIR=$localstatedir/run/xen
XEN_RUN_DIR=$rundir_path/xen
XEN_LOG_DIR=$localstatedir/log/xen
@@ -1888,7 +1900,7 @@ XEN_LOG_DIR=$localstatedir/log/xen
XEN_LIB_STORED=$localstatedir/lib/xenstored
XEN_RUN_STORED=$localstatedir/run/xenstored
XEN_RUN_STORED=$rundir_path/xenstored
XEN_LIB_DIR=$localstatedir/lib/xen
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.