source: rtems/c/src/aclocal/prog-cc.m4 @ 9550125e

4.104.114.84.95
Last change on this file since 9550125e was 9550125e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:18:03

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/bsp-arg-enable.m4, aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-posix.m4, aclocal/check-rdbg.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/i386-gas-code16.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 1.0 KB
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
13_RTEMS_FLAGS([CFLAGS],
14  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])
15
16RTEMS_CHECK_TOOL(CC,gcc)
17test -z "$CC" && \
18  AC_MSG_ERROR([no acceptable cc found in \$PATH])
19AC_PROG_CC
20AC_PROG_CPP
21
22AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
23])
24
25AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
26[
27dnl check target cc
28RTEMS_PROG_CC
29dnl check if the compiler supports -isystem
30RTEMS_GCC_ISYSTEM
31dnl check if the target compiler may use --pipe
32RTEMS_GCC_PIPE
33test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
34
35dnl check if the compiler supports --specs
36RTEMS_GCC_SPECS
37
38if test "$GCC" = yes; then
39RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"
40m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])
41fi
42
43AS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[
44  RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[
45  RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"
46])
47AC_SUBST(RTEMS_CPPFLAGS)
48])
Note: See TracBrowser for help on using the repository browser.