commit 0c3e9499d00ec4792c52e8266b6e28835ea476f1 from: Thomas Adam date: Sun Sep 11 23:39:19 2022 UTC TWEAK 2 commit - 1145767803ca86b228d456b855f0c2ea52d5c336 commit + 0c3e9499d00ec4792c52e8266b6e28835ea476f1 blob - dd050e145bf3b8fb0af537d764f9f3466ae8b2dd blob + 4e054760354350e812fa9c2c5c29cf4f284bc449 --- configure.ac +++ configure.ac @@ -284,18 +284,15 @@ if test x"$PLATFORM" = "xdarwin"; then Falling back to checking either /usr/local or \${prefix}" ]) - if test -n "$HB_USR_LOCAL"; 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 - export HOMEBREW_PREFIX="/usr/local" - FOUND_BISON="yes" - GNUBISON="${HB_USR_LOCAL}/opt/bison/bin/bison" - fi + 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 + export HOMEBREW_PREFIX="/usr/local" + FOUND_BISON="yes" + GNUBISON="${HB_USR_LOCAL}/opt/bison/bin/bison" fi - if test -n "$HB_PREFIX"; then - FOUND_BISON="no" + if test "$FOUND_BISON" = "no"; then AC_MSG_WARN("Trying ${HB_PREFIX}/bin/bison") if test -x "${HB_PREFIX}/bin/bison"; then