Skip to content

Commit

Permalink
Merge pull request #8032 from yosefe/topic/golang-m4-fixed
Browse files Browse the repository at this point in the history
Backport GO bindings build fixes to v1.12.x
  • Loading branch information
yosefe authored Mar 13, 2022
2 parents fdd015d + 9ae7b11 commit 54fd13d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/m4/go.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ AS_IF([test "x$with_go" != xno],
[
AC_CHECK_PROG(GOBIN, go, yes)
AS_IF([test "x${GOBIN}" = "xyes"],
[go_happy="yes"],
[AS_VERSION_COMPARE([1.16], [`go version | awk '{print substr($3, 3, length($3)-2)}'`],
[go_happy="yes"], [go_happy="yes"], [go_happy=no])],
[go_happy=no])
AS_IF([test "x$go_happy" == xno],
[AS_IF([test "x$with_go" = "xguess"],
[AC_MSG_WARN([Disabling GO support - GO compiler not found.])],
[AC_MSG_ERROR([GO support was explicitly requested, but go compiler not found.])])
])
[AC_MSG_WARN([Disabling GO support - GO compiler version 1.16 or newer not found.])],
[AC_MSG_ERROR([GO support was explicitly requested, but go compiler not found.])])])
],
[
AC_MSG_WARN([GO support was explicitly disabled.])
Expand Down

0 comments on commit 54fd13d

Please sign in to comment.