configure: disable bash check for FreeBSD
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 13 Feb 2017 15:47:38 +0000 (15:47 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 14 Feb 2017 16:34:26 +0000 (16:34 +0000)
Bash it's not used on FreeBSD.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: rerun autogen.sh ]

tools/configure
tools/configure.ac

index b59e06c2e4785a53697cfc5db72baf7914968d72..ae96f6b8395c87508b2c298e9d2b1b67d3ff8a35 100755 (executable)
@@ -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
index 873e18dafb8352628eccd1491721d943e9500094..28a539ce7305a069ee1b23abf5e4592da45452a2 100644 (file)
@@ -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`