|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] configure: disable bash check for FreeBSD
commit bdbc25b8722cc1e3921858530f8ac484892156d3
Author: Roger Pau Monne <roger.pau@xxxxxxxxxx>
AuthorDate: Mon Feb 13 15:47:38 2017 +0000
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Tue Feb 14 16:34:26 2017 +0000
configure: disable bash check for FreeBSD
Bash it's not used on FreeBSD.
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
[ wei: rerun autogen.sh ]
---
tools/configure | 7 +++++--
tools/configure.ac | 6 +++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/tools/configure b/tools/configure
index b59e06c..ae96f6b 100755
--- a/tools/configure
+++ b/tools/configure
@@ -6793,7 +6793,9 @@ fi
fi
fi
-# Extract the first word of "bash", so it can be a program name with args.
+case "$host_os" in
+ freebsd*) ;;
+ *) # Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
@@ -6837,7 +6839,8 @@ fi
if test x"${BASH}" = x"no"
then
as_fn_error $? "Unable to find bash, please install bash" "$LINENO" 5
-fi
+fi;;
+esac
if echo "$PYTHON" | grep -q "^/"; then :
PYTHONPATH=$PYTHON
diff --git a/tools/configure.ac b/tools/configure.ac
index 873e18d..28a539c 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -320,7 +320,11 @@ AS_IF([test "x$xsmpolicy" = "xy"], [
xsmpolicy="n"
])
])
-AX_PATH_PROG_OR_FAIL([BASH], [bash])
+dnl FreeBSD doesn't require bash (hotplug scripts are in plain sh)
+case "$host_os" in
+ freebsd*) ;;
+ *) AX_PATH_PROG_OR_FAIL([BASH], [bash]);;
+esac
AS_IF([echo "$PYTHON" | grep -q "^/"], [
PYTHONPATH=$PYTHON
PYTHON=`basename $PYTHONPATH`
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |