Commit 35324692 authored by Sam Stephenson's avatar Sam Stephenson
Browse files

Build REE --without-tk on Darwin if X11 is missing

Fixes #267
parent 5f129640
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -400,6 +400,12 @@ build_package_ree_installer() {
  local options=""
  if [[ "Darwin" = "$(uname)" ]]; then
    options="--no-tcmalloc"

    # Some versions of REE mistakenly detect Tk support
    # on OS X even though X11 is not installed.
    if [ ! -d "/usr/include/X11" ]; then
      options="$options -c --without-tk"
    fi
  fi

  local option