Allow the path to be set from a configure command line option.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: run autogen.sh ]
XEN_LOCK_DIR := @XEN_LOCK_DIR@
XEN_PAGING_DIR := @XEN_PAGING_DIR@
XEN_DUMP_DIR := @XEN_DUMP_DIR@
+DEBUG_DIR := @DEBUG_DIR@
XENFIRMWAREDIR := @XENFIRMWAREDIR@
xen
subdirs
githttp
+DEBUG_DIR
XEN_DUMP_DIR
XEN_PAGING_DIR
XEN_LOCK_DIR
with_libexec_leaf_dir
with_xen_dumpdir
with_rundir
+with_debugdir
enable_githttp
enable_xen
enable_tools
[LOCALSTATEDIR/lib/xen/dump]
--with-rundir=DIR Path to directory for runtime data.
[LOCALSTATEDIR/run]
+ --with-debugdir=DIR Path to directory for debug symbols.
+ [PREFIX/lib/debug]
Report bugs to <xen-devel@lists.xen.org>.
Xen Hypervisor home page: <http://www.xen.org/>.
fi
+
+# Check whether --with-debugdir was given.
+if test "${with_debugdir+set}" = set; then :
+ withval=$with_debugdir; debugdir_path=$withval
+else
+ debugdir_path=$prefix/lib/debug
+fi
+
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_DUMP_DIR=$xen_dumpdir_path
+DEBUG_DIR=$debugdir_path
+
+
# Check whether --enable-githttp was given.
if test "${enable_githttp+set}" = set; then :
POD2HTML
POD2MAN
FIG2DEV
+DEBUG_DIR
XEN_DUMP_DIR
XEN_PAGING_DIR
XEN_LOCK_DIR
with_libexec_leaf_dir
with_xen_dumpdir
with_rundir
+with_debugdir
'
ac_precious_vars='build_alias
host_alias
[LOCALSTATEDIR/lib/xen/dump]
--with-rundir=DIR Path to directory for runtime data.
[LOCALSTATEDIR/run]
+ --with-debugdir=DIR Path to directory for debug symbols.
+ [PREFIX/lib/debug]
Some influential environment variables:
FIG2DEV Path to fig2dev tool
fi
+
+# Check whether --with-debugdir was given.
+if test "${with_debugdir+set}" = set; then :
+ withval=$with_debugdir; debugdir_path=$withval
+else
+ debugdir_path=$prefix/lib/debug
+fi
+
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_DUMP_DIR=$xen_dumpdir_path
+DEBUG_DIR=$debugdir_path
+
+
[rundir_path=$withval],
[rundir_path=$localstatedir/run])
+AC_ARG_WITH([debugdir],
+ AS_HELP_STRING([--with-debugdir=DIR],
+ [Path to directory for debug symbols. [PREFIX/lib/debug]]),
+ [debugdir_path=$withval],
+ [debugdir_path=$prefix/lib/debug])
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_DUMP_DIR=$xen_dumpdir_path
AC_SUBST(XEN_DUMP_DIR)
+
+DEBUG_DIR=$debugdir_path
+AC_SUBST(DEBUG_DIR)
])
case "$host_os" in
monitors
githttp
rpath
+DEBUG_DIR
XEN_DUMP_DIR
XEN_PAGING_DIR
XEN_LOCK_DIR
with_libexec_leaf_dir
with_xen_dumpdir
with_rundir
+with_debugdir
enable_rpath
enable_githttp
enable_monitors
[LOCALSTATEDIR/lib/xen/dump]
--with-rundir=DIR Path to directory for runtime data.
[LOCALSTATEDIR/run]
+ --with-debugdir=DIR Path to directory for debug symbols.
+ [PREFIX/lib/debug]
--with-linux-backend-modules="mod1 mod2"
List of Linux backend module or modalias names to be
autoloaded on startup.
fi
+
+# Check whether --with-debugdir was given.
+if test "${with_debugdir+set}" = set; then :
+ withval=$with_debugdir; debugdir_path=$withval
+else
+ debugdir_path=$prefix/lib/debug
+fi
+
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_DUMP_DIR=$xen_dumpdir_path
+DEBUG_DIR=$debugdir_path
+
+
# Enable/disable options