<div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 1 Feb 2019 at 12:13, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>how can I check if a function exists in waf (similar to AC_CHECK_FUNC)? <br>Currently, we get this output from the RTEMS tools waf configure (please <br>note the "Invalid argument 'function_name' in test"):<br>
<br></blockquote><div>Hi,</div><div><br></div><div>The support for 'function_name' has been removed since waf 2 as it</div><div>was broken ( see <a href="https://gitlab.com/ita1024/waf/blob/master/waflib/Tools/c_config.py#L420">https://gitlab.com/ita1024/waf/blob/master/waflib/Tools/c_config.py#L420</a>)</div><div><br></div><div>I guess the best option is to just use 'header_name' or to use the 'fragment' parameter to write a fragment that calls the desired function.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">./waf configure<br>Setting top to                           : /scratch/git-rtems-tools<br>Setting out to                           : /scratch/git-rtems-tools/build<br>Version                                  : 5.551ce0825375-modified (5)<br>Checking for program 'python'            : /usr/bin/python<br>Checking for python version >= 2.6.6     : 2.7.14<br>Checking for program 'python'            : /usr/bin/python<br>Checking for program 'python2'           : /usr/bin/python2<br>Checking for program 'python3'           : /usr/bin/python3<br>Checking for 'gcc' (C compiler)          : /usr/bin/gcc<br>Checking for 'g++' (C++ compiler)        : /usr/bin/g++<br>Checking for header alloca.h             : yes<br>Checking for header fcntl.h              : yes<br>Checking for header process.h            : not found<br>Checking for header stdlib.h             : yes<br>Checking for header string.h             : yes<br>Checking for header strings.h            : yes<br>Checking for header sys/file.h           : yes<br>Checking for header sys/stat.h           : yes<br>Checking for header sys/time.h           : yes<br>Checking for header sys/types.h          : yes<br>Checking for header sys/wait.h           : yes<br>Checking for header unistd.h             : yes<br>Checking for header vfork.h              : not found<br>Invalid argument 'function_name' in test<br>Checking for header sys/time.h sys/resource.h : yes<br>Checking for program 'm4'                     : /usr/bin/m4<br>Checking for header sys/wait.h                : yes<br>Invalid argument 'function_name' in test<br>Checking for header signal.h                  : yes<br>Checking for 'gcc' (C compiler)               : /usr/bin/gcc<br>Checking for 'g++' (C++ compiler)             : /usr/bin/g++<br>Checking for 'gcc' (C compiler)               : /usr/bin/gcc<br>Invalid argument 'function_name' in test<br>Checking for header string.h                  : yes<br>Checking for 'g++' (C++ compiler)             : /usr/bin/g++<br>Invalid argument 'function_name' in test<br>Checking for header stdlib.h                  : yes<br>Invalid argument 'function_name' in test<br>Checking for header stdlib.h                  : yes<br>'configure' finished successfully (1.058s)<br>
<br>-- <br>Sebastian Huber, embedded brains GmbH<br>
<br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone   : +49 89 189 47 41-16<br>Fax     : +49 89 189 47 41-09<br>E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>PGP     : Public key available on request.<br>
<br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>_______________________________________________<br>devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>