4.104.114.84.95
Last change
on this file since 2e0fd427 was
2e0fd427,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 15:44:04
|
2000-11-02 Ralf Corsepius <corsepiu@…>
- aclocal/*: Replace with contents of macros/*.m4
- macros/: Remove.
- aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
- Makefile.am: Reflect changes to aclocal/ and macros/.
|
-
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 | |
---|
[2e0fd427] | 15 | AC_CHECK_TOOL(CC,gcc) |
---|
| 16 | AC_PROG_CC |
---|
[2efdd08] | 17 | |
---|
[2e0fd427] | 18 | AM_CONDITIONAL(RTEMS_USE_GCC,test x"$ac_cv_prog_gcc" = x"yes") |
---|
[51c195d5] | 19 | ]) |
---|
[6693a68] | 20 | |
---|
| 21 | AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, |
---|
| 22 | [ |
---|
| 23 | dnl check target cc |
---|
| 24 | RTEMS_PROG_CC |
---|
| 25 | dnl check if the compiler supports --specs |
---|
| 26 | RTEMS_GCC_SPECS |
---|
| 27 | dnl check if the target compiler may use --pipe |
---|
| 28 | RTEMS_GCC_PIPE |
---|
| 29 | dnl check if the compiler supports --specs if gcc28 is requested |
---|
| 30 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 31 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 32 | AC_MSG_WARN([*** disabling --enable-gcc28]) |
---|
| 33 | RTEMS_USE_GCC272=yes |
---|
| 34 | fi |
---|
| 35 | fi |
---|
| 36 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
| 37 | |
---|
[1ea70d78] | 38 | ## Conditional for automake files |
---|
| 39 | AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes") |
---|
| 40 | ## Make variable for autoconf fragments (*.cfg) |
---|
| 41 | AC_SUBST(RTEMS_USE_GCC272) |
---|
| 42 | |
---|
[6693a68] | 43 | dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* |
---|
| 44 | case $host_os in |
---|
| 45 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 46 | *) ;; |
---|
| 47 | esac |
---|
| 48 | AC_SUBST(GCCSED) |
---|
| 49 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.