Commit 1a37ab18 authored by SHIBATA Hiroshi's avatar SHIBATA Hiroshi Committed by GitHub
Browse files

Merge pull request #934 from aycabta/gmake-is-required-for-jruby

GNU Make is always required for JRuby on FreeBSD
parents c3c58cde 750c086d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1212,8 +1212,16 @@ if "${CC:-cc}" -x c /dev/null -E -Wno-error=shorten-64-to-32 &>/dev/null; then
fi

if [ -z "$MAKE" ]; then
  if [ "FreeBSD" = "$(uname -s)" ] && [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
  if [ "FreeBSD" = "$(uname -s)" ]; then
    if [ $(echo $1 | sed 's/-.*$//') = "jruby" ]; then
      export MAKE="gmake"
    else
      if [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
	export MAKE="gmake"
      else
	export MAKE="make"
      fi
    fi
  else
    export MAKE="make"
  fi