source: rtems/aclocal/prog-cc.m4 @ 53eb191

4.104.114.84.95
Last change on this file since 53eb191 was 53eb191, checked in by Joel Sherrill <joel.sherrill@…>, on 04/17/02 at 13:27:29

2002-04-15 Ralf Corsepius <corsepiu@…>

  • aclocal/prog-cc.m4: Remove GCC272 support. Remove ENABLE_LIBCDIR.
  • aclocal/prog-cxx.m4: Ditto.
  • aclocal/enable-gcc28.m4: Remove.
  • aclocal/enable-libcdir.m4: Ditto.
  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[51c195d5]1dnl
2dnl $Id$
3dnl
4dnl Check for target gcc
5dnl
6
7AC_DEFUN(RTEMS_PROG_CC,
8[
9AC_BEFORE([$0], [AC_PROG_CPP])dnl
10AC_BEFORE([$0], [AC_PROG_CC])dnl
[b62a92c]11AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
[2efdd08]12
[4686e5d9]13RTEMS_CHECK_TOOL(CC,gcc)
14test -z "$CC" && \
15  AC_MSG_ERROR([no acceptable cc found in \$PATH])
[2e0fd427]16AC_PROG_CC
[560aae24]17AC_PROG_CPP
[2efdd08]18
[2dbd07f8]19AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
[51c195d5]20])
[6693a68]21
22AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
23[
24dnl check target cc
25RTEMS_PROG_CC
26dnl check if the compiler supports --specs
27RTEMS_GCC_SPECS
28dnl check if the target compiler may use --pipe
29RTEMS_GCC_PIPE
30dnl check if the compiler supports --specs if gcc28 is requested
[53eb191]31#  if test "$rtems_cv_gcc_specs" = "no"; then
32#    AC_MSG_WARN([*** disabling --enable-gcc28])
33#      RTEMS_USE_GCC272=yes
34#  fi
[2dbd07f8]35test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
[6693a68]36
[f1d08c98]37if test "$GCC" = yes; then
38]
[8e541868]39m4_if([$1],,[],[CPPFLAGS="$CPPFLAGS $1"])
[f1d08c98]40[
41CFLAGS="-g -Wall"
42fi
[1ea70d78]43
[6693a68]44dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
[560aae24]45case $build_os in
[6693a68]46*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
47*) ;;
48esac
49AC_SUBST(GCCSED)
50])
Note: See TracBrowser for help on using the repository browser.