Updated Go configure test.
This commit is contained in:
parent
057c2526ee
commit
d218c5f7b4
1 changed files with 13 additions and 4 deletions
|
@ -3,18 +3,27 @@
|
|||
# Copyright (C) NGINX, Inc.
|
||||
|
||||
|
||||
$echo -n "checking for Go ..."
|
||||
$echo -n "checking for Go ..." >> $NXT_AUTOCONF_ERR
|
||||
|
||||
NXT_GO_VERSION="`${NXT_GO} version`"
|
||||
|
||||
GOPATH=`pwd` CGO_CPPFLAGS="-DNXT_CONFIGURE" "${NXT_GO}" build -o build/nxt_go_gen.a --buildmode=c-archive nginext
|
||||
if /bin/sh -c "GOPATH=`pwd` CGO_CPPFLAGS=-DNXT_CONFIGURE \
|
||||
\"${NXT_GO}\" build -o build/nxt_go_gen.a --buildmode=c-archive nginext" \
|
||||
>> $NXT_AUTOCONF_ERR 2>&1;
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
then
|
||||
$echo " found"
|
||||
$echo " + Go version: ${NXT_GO_VERSION}"
|
||||
|
||||
else
|
||||
$echo
|
||||
$echo $0: error: no go found.
|
||||
$echo
|
||||
$echo $0: error: Go not found.
|
||||
$echo
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
$echo " + go version: ${NXT_GO_VERSION}"
|
||||
|
||||
NXT_GO_MODULE_SRCS=" \
|
||||
src/nxt_go.c \
|
||||
|
|
Loading…
Reference in a new issue