4.104.114.84.95
Last change
on this file since e05468fb was
a0ea6f1,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/06/02 at 20:12:13
|
2002-02-05 Ralf Corsepius <corsepiu@…>
- aclocal/check-newlib.m4: Apply AS_IF.
- aclocal/config-subdirs.m4: Remove _RTEMS_PUSH_BUILDDIR,
_RTEMS_POP_BUILDDIR, _RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR.
- aclocal/subdirs.m4: Fix comments, apply AS_IF.
- aclocal/sysv-ipc.m4: Reflect autoconf-2.5x canonicalization
changes.
- aclocal/target.m4: Add _RTEMS_PUSH_BUILDDIR, _RTEMS_POP_BUILDDIR,
_RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR.
- automake/compile.am: Remove librtemsall from LINK_FILES.
|
-
Property mode set to
100644
|
File size:
849 bytes
|
Line | |
---|
1 | dnl $Id$ |
---|
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 RTEMS newlib], |
---|
8 | rtems_cv_use_newlib, |
---|
9 | [ |
---|
10 | dnl some versions of newlib provide not_required_by_rtems |
---|
11 | AC_TRY_LINK( |
---|
12 | [extern void not_required_by_rtems() ;], |
---|
13 | [not_required_by_rtems()], |
---|
14 | rtems_cv_use_newlib="yes") |
---|
15 | |
---|
16 | dnl some versions of newlib provide rtems_provides_crt0() |
---|
17 | AS_IF([test -z "$rtems_cv_use_newlib"], |
---|
18 | [AC_TRY_LINK( |
---|
19 | [extern void rtems_provides_crt0() ;], |
---|
20 | [rtems_provides_crt0()], |
---|
21 | rtems_cv_use_newlib="yes", |
---|
22 | rtems_cv_use_newlib="no")] |
---|
23 | ) |
---|
24 | ]) |
---|
25 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
26 | AC_SUBST(RTEMS_USE_NEWLIB) |
---|
27 | |
---|
28 | AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"], |
---|
29 | [ AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib])] |
---|
30 | ) |
---|
31 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.