comparison configure.ac @ 1616:e86e23110e42

Minor tweak
author Chris Cannam
date Mon, 27 Feb 2017 13:47:05 +0000
parents cc481995c96d
children 3c5a87970daa
comparison
equal deleted inserted replaced
1615:cc481995c96d 1616:e86e23110e42
88 SV_MODULE_REQUIRED([serd],[serd-0 >= 0.5],[serd/serd.h],[serd-0],[serd_reader_read_file]) 88 SV_MODULE_REQUIRED([serd],[serd-0 >= 0.5],[serd/serd.h],[serd-0],[serd_reader_read_file])
89 89
90 # Cap'n Proto 0.5.3 is the latest release at the time of writing, but 90 # Cap'n Proto 0.5.3 is the latest release at the time of writing, but
91 # it lacks the expectedSizeInWordsFromPrefix function which exists in 91 # it lacks the expectedSizeInWordsFromPrefix function which exists in
92 # the git repo. Our check is for that specific symbol, which would 92 # the git repo. Our check is for that specific symbol, which would
93 # indicate a git clone, or for release 0.5.4 or later via pkg-config. 93 # indicate a git clone, or for a newer release via pkg-config.
94 PKG_CHECK_MODULES([capnp],[capnp >= 0.5.4],[HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"],[AC_MSG_NOTICE([Failed to find required module capnp using pkg-config, trying again by old-fashioned means])]) 94 PKG_CHECK_MODULES([capnp],[capnp > 0.5.3],[HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"],[AC_MSG_NOTICE([Failed to find required module capnp using pkg-config, trying again by old-fashioned means])])
95 if test -z "$capnp_LIBS" ; then 95 if test -z "$capnp_LIBS" ; then
96 AC_COMPILE_IFELSE([ 96 AC_COMPILE_IFELSE([
97 AC_LANG_SOURCE([[ 97 AC_LANG_SOURCE([[
98 #include <capnp/serialize.h> 98 #include <capnp/serialize.h>
99 int main() { 99 int main() {