openweave / openweave-wdlc

This package makes available the Weave Data Language (WDL) compiler (WDLC). WDL is Weave's publish and subscribe schema language. The WDLC compiler can be used to compile (i.e., validate and code generate) schema written against the WDL specification.
https://openweave.io/
Apache License 2.0
2 stars 8 forks source link

The configure Script Fails when PROTOC Is an Absolute Path to a Symbolically-linked protoc #5

Closed gerickson closed 5 years ago

gerickson commented 5 years ago

Reproduction cases

Success

%  ln -sf /usr/local/bin/protoc protoc2.7
% mkdir tmp-build
% cd tmp-build
% ../configure PROTOC=../protoc2.7

Failure

%  ln -sf /usr/local/bin/protoc protoc2.7
% mkdir tmp-build
% cd tmp-build
% ../configure PROTOC=${HOME}/openweave-wdlc/protoc2.7

with the failure output of:

checking for protoc... ${HOME}/openweave-wdlc/protoc2.7
checking ${HOME}/openweave-wdlc/protoc2.7 version... 3.7.0
checking ${HOME}/openweave-wdlc/protoc2.7 version is at least 3.3.0... yes
checking ${HOME}/openweave-wdlc/protoc2.7 version is at most 3.7.1... yes
checking where ${HOME}/openweave-wdlc/protoc2.7 sources its headers from... configure: error: could not find 'google/protobuf/compiler/plugin.proto' in '${HOME}/openweave-wdlc/../include'. Please specify PROTOC_INCLUDES at a working protoc header directory; otherwise, your protoc installation maybe invalid or incomplete.