source: rtems/cpukit/aclocal/check-newlib.m4 @ 1f64ebf

4.104.114.84.95
Last change on this file since 1f64ebf was 1f64ebf, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/19/02 at 17:10:36

2002-11-19 Ralf Corsepius <corsepiu@…>

  • aclocal/sysv-ipc.m4: Adaptation to autoconf-2.5x.
  • aclocal/check-newlib.m4: Sync with ../aclocal/check-newlib.m4.
  • Property mode set to 100644
File size: 909 bytes
Line 
1dnl $Id$
2
3AC_DEFUN(RTEMS_CHECK_NEWLIB,
4[dnl
5AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
6AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
7AC_CACHE_CHECK([for RTEMS newlib],
8  rtems_cv_use_newlib,
9  [
10dnl some versions of newlib provide not_required_by_rtems
11    AC_LINK_IFELSE(
12      [AC_LANG_PROGRAM([[extern void not_required_by_rtems() ;]],
13        [[not_required_by_rtems()]])],
14      [rtems_cv_use_newlib="yes"],[])
15
16dnl some versions of newlib provide rtems_provides_crt0()
17    AS_IF([test -z "$rtems_cv_use_newlib"],
18      [AC_LINK_IFELSE(
19         [AC_LANG_PROGRAM([[extern void rtems_provides_crt0() ;]],
20           [[rtems_provides_crt0()]])],
21         [rtems_cv_use_newlib="yes"],[rtems_cv_use_newlib="no"])
22    ])
23  ])
24  RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
25  AC_SUBST(RTEMS_USE_NEWLIB)
26
27  AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],
28    [ AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib])]
29  )
30])
Note: See TracBrowser for help on using the repository browser.