How can I check if a function exists in waf?

Joel Sherrill joel at rtems.org
Sat Feb 2 21:39:16 UTC 2019


On Sat, Feb 2, 2019, 2:20 PM Chris Johns <chrisj at rtems.org wrote:

> On 2/2/19 9:12 pm, Sebastian Huber wrote:
> > ----- Am 2. Feb 2019 um 2:07 schrieb Chris Johns chrisj at 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 create a function to
> handle
> >> repeated checks, for example:
> >>
> >>
> https://git.rtems.org/chrisj/rtems_waf.git/tree/rtems.py?h=libbsd-libdl#n270
> >>
> >> I think having the ability to perform checks for an RTEMS application
> highlights
> >> the power available.
> >
> > Yes, I don't doubt that you can do a lot of things with Python, but it
> was a bit surprising to me that I have to write custom code for things
> which are covered by basic Autoconf macros and only because Microsoft is
> not able to ship an operating system with a strnlen() function.
>
> Sure, this is a good question. I can only suggest you raise an issue in
> gitlab
> to see what Thomas says. A patch may even work and be merged.
>

https://waf.io/apidocs/tools/c_config.html

I think there is an example there for doing this. At least it looks like
what I think it does reading that.

>
> Chris
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190202/f8b9681a/attachment-0002.html>


More information about the devel mailing list