Re: How can I check if a function exists in waf?

2019-02-02 Thread Joel Sherrill
On Sat, Feb 2, 2019, 2:20 PM Chris Johns On 2/2/19 9:12 pm, Sebastian Huber wrote: > > - Am 2. Feb 2019 um 2:07 schrieb Chris Johns chr...@rtems.org: > >> On 1/2/19 8:19 pm, Sebastian Huber wrote: > >>> > >>> So, this test uses already quite some code and still is basically > useless. > >> >

Re: How can I check if a function exists in waf?

2019-02-02 Thread Chris Johns
On 2/2/19 9:12 pm, Sebastian Huber wrote: > - Am 2. Feb 2019 um 2:07 schrieb Chris Johns chr...@rtems.org: >> On 1/2/19 8:19 pm, Sebastian Huber wrote: >>> >>> So, this test uses already quite some code and still is basically useless. >> >> You have a powerful language available. I would

Re: How can I check if a function exists in waf?

2019-02-02 Thread Sebastian Huber
- Am 2. Feb 2019 um 2:07 schrieb Chris Johns chr...@rtems.org: > On 1/2/19 8:19 pm, Sebastian Huber wrote: >> >> So, there is no standard compile and link test for functions? If I use this >> >>     conf.check_cc(fragment = 'int main(void) { strnlen("", 0); return 0; }', >>  

Re: How can I check if a function exists in waf?

2019-02-01 Thread Chris Johns
On 1/2/19 8:19 pm, Sebastian Huber wrote: > > So, there is no standard compile and link test for functions? If I use this > >     conf.check_cc(fragment = 'int main(void) { strnlen("", 0); return 0; }', >   header_name="string.h", features = 'c', mandatory = False) > > waf

Re: How can I check if a function exists in waf?

2019-02-01 Thread Sebastian Huber
On 01/02/2019 10:06, Vijay Kumar Banerjee wrote: On Fri, 1 Feb 2019 at 12:13, Sebastian Huber <mailto:sebastian.hu...@embedded-brains.de>> wrote: Hello, how can I check if a function exists in waf (similar to AC_CHECK_FUNC)? Currently, we get this output from the RT

Re: How can I check if a function exists in waf?

2019-02-01 Thread Vijay Kumar Banerjee
On Fri, 1 Feb 2019 at 12:13, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > how can I check if a function exists in waf (similar to AC_CHECK_FUNC)? > Currently, we get this output from the RTEMS tools waf configure (please > note the "Inval

How can I check if a function exists in waf?

2019-01-31 Thread Sebastian Huber
Hello, how can I check if a function exists in waf (similar to AC_CHECK_FUNC)? Currently, we get this output from the RTEMS tools waf configure (please note the "Invalid argument 'function_name' in test"): ./waf configure Setting top to   : /scratch/git-r