4.104.114.84.95
Last change
on this file since 560aae24 was
560aae24,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/29/01 at 15:27:25
|
2001-01-26 Ralf Corsepius <corsepiu@…>
- aclocal/enable-rtemsbsp.m4: Split out RTEMS_ENV_RTEMSBSP,
RTEMS_ENV_RTEMSCPU.
- aclocal/env-rtemsbsp.m4: New file for RTEMS_ENV_RTEMSBSP, add
special treatment for GCC_SPECS.
- aclocal/env-rtemscpu.m4: New file for RTEMS_ENV_RTEMSCPU, add
special treatment for GCC_SPECS.
- aclocal/bsp-enable-arg.m4: New file, introduce RTEMS_BSP_ARG_ENABLE.
- aclocal/prog-cc.m4: Add AC_PROG_CPP, use build_os in GCCSED hack.
- automake/compile.am: New treatment of CPP, GCCSPECS, use
..
instead of $(shell ..) for LIBC_LIB*.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[51c195d5] | 1 | dnl |
---|
| 2 | dnl $Id$ |
---|
| 3 | dnl |
---|
| 4 | dnl Check for target gcc |
---|
| 5 | dnl |
---|
| 6 | |
---|
| 7 | AC_DEFUN(RTEMS_PROG_CC, |
---|
| 8 | [ |
---|
| 9 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
| 10 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
[b62a92c] | 11 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
[70810dc] | 12 | AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl |
---|
[1ea70d78] | 13 | AC_REQUIRE([RTEMS_ENABLE_GCC28])dnl |
---|
[2efdd08] | 14 | |
---|
[4686e5d9] | 15 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
| 16 | test -z "$CC" && \ |
---|
| 17 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
[2e0fd427] | 18 | AC_PROG_CC |
---|
[560aae24] | 19 | AC_PROG_CPP |
---|
[2efdd08] | 20 | |
---|
[2dbd07f8] | 21 | AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes") |
---|
[51c195d5] | 22 | ]) |
---|
[6693a68] | 23 | |
---|
| 24 | AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, |
---|
| 25 | [ |
---|
| 26 | dnl check target cc |
---|
| 27 | RTEMS_PROG_CC |
---|
| 28 | dnl check if the compiler supports --specs |
---|
| 29 | RTEMS_GCC_SPECS |
---|
| 30 | dnl check if the target compiler may use --pipe |
---|
| 31 | RTEMS_GCC_PIPE |
---|
| 32 | dnl check if the compiler supports --specs if gcc28 is requested |
---|
| 33 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 34 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 35 | AC_MSG_WARN([*** disabling --enable-gcc28]) |
---|
| 36 | RTEMS_USE_GCC272=yes |
---|
| 37 | fi |
---|
| 38 | fi |
---|
[2dbd07f8] | 39 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
[6693a68] | 40 | |
---|
[1ea70d78] | 41 | ## Conditional for automake files |
---|
| 42 | AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes") |
---|
| 43 | ## Make variable for autoconf fragments (*.cfg) |
---|
| 44 | AC_SUBST(RTEMS_USE_GCC272) |
---|
| 45 | |
---|
[6693a68] | 46 | dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* |
---|
[560aae24] | 47 | case $build_os in |
---|
[6693a68] | 48 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 49 | *) ;; |
---|
| 50 | esac |
---|
| 51 | AC_SUBST(GCCSED) |
---|
| 52 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.