Re: [CMake] determining which system headerfile provides a given function

2015-06-16 Thread René J . V . Bertin
On Monday June 15 2015 23:05:07 Alexander Neundorf wrote: > if you have multiple candidate headers, try them all, and use separate result > variables for every one. > Is that the problem you have ? Yes. That's probably the thing I missed and why it didn't work; I used a single variable. Still,

Re: [CMake] determining which system headerfile provides a given function

2015-06-15 Thread Alexander Neundorf
On Saturday, June 13, 2015 23:17:37 René J.V. Bertin wrote: > On Saturday June 13 2015 22:26:12 Alexander Neundorf wrote: > > did you try check_symbol_exists() and the other similar functions ? > > Yes, but none that I could find give any information beyond whether the > symbol exists. It may be p

Re: [CMake] determining which system headerfile provides a given function

2015-06-13 Thread René J . V . Bertin
On Saturday June 13 2015 22:26:12 Alexander Neundorf wrote: > did you try check_symbol_exists() and the other similar functions ? Yes, but none that I could find give any information beyond whether the symbol exists. It may be possible (or necessary) to repeat such tests trying each of the poss

Re: [CMake] determining which system headerfile provides a given function

2015-06-13 Thread Alexander Neundorf
On Wednesday, June 10, 2015 01:32:21 René J. V. Bertin wrote: > Ok, let me rephrase the question to see what other kind of constructive > answers that'll lead to: > > how does one check which header file provides the prototype for a function > from the system libraries? Function in question: reall

Re: [CMake] determining which system headerfile provides a given function

2015-06-09 Thread René J . V . Bertin
Ok, let me rephrase the question to see what other kind of constructive answers that'll lead to: how does one check which header file provides the prototype for a function from the system libraries? Function in question: reallocf; can apparently be in either stdlib.h or bsd/stdlib.h . -- Pow

Re: [CMake] determining which system headerfile provides a given function

2015-06-09 Thread Stephen Kelly
René J.V. Bertin wrote: > Hello, > > I need to determine the availability of a certain function (reallocf) and > which headerfile provides its prototype. If there is a function that > handles this case I must have overlooked it (including on google), so I > tried repeating a check_symbol_exist()

[CMake] determining which system headerfile provides a given function

2015-06-09 Thread René J . V . Bertin
Hello, I need to determine the availability of a certain function (reallocf) and which headerfile provides its prototype. If there is a function that handles this case I must have overlooked it (including on google), so I tried repeating a check_symbol_exist() call repeatedly with the various k