source: rtems/cpukit/aclocal/check-func.m4 @ a2a71b5

5
Last change on this file since a2a71b5 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 622 bytes
Line 
1# Check whether FUNCTION is declared in INCLUDES
2# and whether rtems_stub_FUNCTION or FUNCTION is supplied.
3
4# RTEMS_CHECK_FUNC(FUNCTION[,INCLUDES])
5AC_DEFUN([RTEMS_CHECK_FUNC],
6[AC_REQUIRE([RTEMS_CHECK_NEWLIB])
7AC_CHECK_DECLS([$1],,,[$2])
8
9AC_CACHE_CHECK([for $1],[ac_cv_$1],[
10  AC_LINK_IFELSE(
11    [AC_LANG_PROGRAM([[$2]],[[rtems_stub_$1()]])],
12    [ac_cv_$1="stub"],
13    [AC_LINK_IFELSE(
14      [AC_LANG_PROGRAM([[$2]],[[$1()]])],
15      [ac_cv_$1="yes"],
16      [ac_cv_$1="no"])
17    ])
18  ])
19AS_IF([test "$ac_cv_$1" = yes],
20  [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]$1),[1],[Define to 1 if you have the `$1' function.])])
21])
Note: See TracBrowser for help on using the repository browser.