source: rtems/cpukit/aclocal/prog-cc.m4 @ a29d2e7

4.104.114.84.95
Last change on this file since a29d2e7 was 891aa12e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/01/05 at 16:06:39

2005-02-01 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/prog-cc.m4: Remove refs to gcc-isystem.m4.
  • aclocal/gcc-isystem.m4: Remove (Unused).
  • Property mode set to 100644
File size: 709 bytes
Line 
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
11AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
12
13RTEMS_CHECK_TOOL(CC,gcc)
14test -z "$CC" && \
15  AC_MSG_ERROR([no acceptable cc found in \$PATH])
16AC_PROG_CC
17AC_PROG_CPP
18])
19
20AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
21[
22dnl check target cc
23RTEMS_PROG_CC
24dnl check if the target compiler may use --pipe
25RTEMS_GCC_PIPE
26test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
27
28if test "$GCC" = yes; then
29RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"
30m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])
31fi
32AC_SUBST(RTEMS_CFLAGS)
33
34RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"
35AC_SUBST(RTEMS_CPPFLAGS)
36])
Note: See TracBrowser for help on using the repository browser.