commit 8ba203d0d4c0a9bec426045409e95ea7cdd7ff32 from: Thomas Adam date: Sun Sep 11 23:44:44 2022 UTC TWEAK 3 commit - 0c3e9499d00ec4792c52e8266b6e28835ea476f1 commit + 8ba203d0d4c0a9bec426045409e95ea7cdd7ff32 blob - 4e054760354350e812fa9c2c5c29cf4f284bc449 blob + 9852b60072ca1aff56b2de278cf0c3c2a34e6c3d --- configure.ac +++ configure.ac @@ -244,7 +244,6 @@ if test x"$PLATFORM" = "xdarwin"; then # # In both cases, the variable HOMEBREW_PREFIX is used for both. HB_PREFIX="" - HB_USR_LOCAL="" FOUND_BISON="no" GNUBISON="" if test -z "$HOMEBREW_PREFIX" -o "$HOMEBREW_PREFIX" = "NONE"; then @@ -259,8 +258,8 @@ if test x"$PLATFORM" = "xdarwin"; then # Default. if test -z "${prefix}" -o "${prefix}" = "NONE"; then export HOMEBREW_PREFIX="/usr/local" - HB_USR_LOCAL="/usr/local" - AC_MSG_NOTICE("HOMEBREW_PREFIX defaulting to /usr/local") + HB_PREFIX="/usr/local" + AC_MSG_NOTICE("HOMEBREW_PREFIX defaulting to $HB_PREFIX") else HB_PREFIX="$(eval echo ${prefix})" if test "$HB_PREFIX" = "NONE"; then @@ -285,11 +284,11 @@ if test x"$PLATFORM" = "xdarwin"; then ]) FOUND_BISON="no" - AC_MSG_WARN("Trying ${HB_USR_LOCAL}/opt/bison/bin/bison") - if test -x "${HB_USR_LOCAL}/opt/bison/bin/bison"; then + AC_MSG_WARN("Trying ${HB_PREFIX}/opt/bison/bin/bison") + if test -x "${HB_PREFIX}/opt/bison/bin/bison"; then export HOMEBREW_PREFIX="/usr/local" FOUND_BISON="yes" - GNUBISON="${HB_USR_LOCAL}/opt/bison/bin/bison" + GNUBISON="${HB_PREFIX}/opt/bison/bin/bison" fi if test "$FOUND_BISON" = "no"; then