640,647d639
< # Determine the appropriate include path and library path using
< # pkg-config, that means we also need to check for pkg-config
< if not readCommand(['pkg-config', '--version'], exception=''):
< print 'Error: pkg-config not found. Please install and retry.'
< Exit(1)
<
< main.ParseConfig('pkg-config --cflags --libs-only-L protobuf')
<
652,654c644,665
< print 'Error: protoc version', min_protoc_version, 'or newer required.'
< print ' Installed version:', protoc_version[1]
< Exit(1)
---
> print termcap.Yellow + termcap.Bold + \
> 'Warning: protoc version', min_protoc_version, \
> 'or newer required.\n' + \
> ' Installed version:', protoc_version[1], \
> termcap.Normal
> main['PROTOC'] = False
> else:
> # Attempt to determine the appropriate include path and
> # library path using pkg-config, that means we also need to
> # check for pkg-config. Note that it is possible to use
> # protobuf without the involvement of pkg-config. Later on we
> # check go a library config check and at that point the test
> # will fail if libprotobuf cannot be found.
> if readCommand(['pkg-config', '--version'], exception=''):
> try:
> # Attempt to establish what linking flags to add for protobuf
> # using pkg-config
> main.ParseConfig('pkg-config --cflags --libs-only-L protobuf')
> except:
> print termcap.Yellow + termcap.Bold + \
> 'Warning: pkg-config could not get protobuf flags.' + \
> termcap.Normal
849c860
< # If we have the compiler but not the library, treat it as an error.
---
> # If we have the compiler but not the library, print another warning.
851,853c862,865
< print 'Error: did not find protocol buffer library and/or headers.'
< print ' Please install libprotobuf-dev and try again.'
< Exit(1)
---
> print termcap.Yellow + termcap.Bold + \
> 'Warning: did not find protocol buffer library and/or headers.\n' + \
> ' Please install libprotobuf-dev for tracing support.' + \
> termcap.Normal