OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [check-newlib.m4] - Blame information for rev 252

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
dnl $Id: check-newlib.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
2
 
3
AC_DEFUN(RTEMS_CHECK_NEWLIB,
4
[dnl
5
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
6
AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
7
AC_CACHE_CHECK([for newlib],
8
  rtems_cv_use_newlib,
9
  [
10
    rtems_save_CC=$CC
11
    CC=$CC_FOR_TARGET
12
 
13
dnl some versions of newlib provide not_required_by_rtems
14
    AC_TRY_LINK(
15
      [extern int not_required_by_rtems() ;],
16
      [not_required_by_rtems()],
17
      rtems_cv_use_newlib="yes")
18
 
19
dnl older versions of newlib provided rtems_provides_crt0
20
    if test -z "$rtems_cv_use_newlib"; then
21
      AC_TRY_LINK(
22
        [extern int rtems_provides_crt0 ;],
23
        [rtems_provides_crt0 = 0],
24
        rtems_cv_use_newlib="yes",
25
        rtems_cv_use_newlib="no")
26
    fi
27
  CC=$rtems_save_CC])
28
RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
29
AC_SUBST(RTEMS_USE_NEWLIB)
30
])
31
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.