Re: Extending configure.ac to check for C++ header only libraries

"Markus Mützel" <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <trinity-280e88d1-1994-484c-bde0-21a30e17578b-1590151884619@3c-app-gmx-bap17>
Am 22. Mai 2020 um 13:53 Uhr schrieb "Kai Torben Ohlhus"
> Thank you for looking into it Markus.  By using AC_CHECK_HEADERS only,
> we do not get the configure options like
>
>    ./configure --with-rapidjson-includedir=
>
> automatically, right?  Thus, copying the AC_CHECK_HEADERS macro and
> other necessary parts from OCTAVE_CHECK_LIB seems like my second
> suggestion seems more appropriate.

Do we need to have that option for a header-only library?
Wouldn't it be good enough to use something like this if the headers are in a "non-standard" path:
./configure CPPFLAGS=-I/some/path/to/the/headers --with-rapidjson

If you think that the ...-includir syntax is absolutely necessary, you'd probably need to go the way you outlined

Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.