source: rtems/c/src/aclocal/prog-cc.m4 @ 333a312

4.115
Last change on this file since 333a312 was 91d2e18, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/04/12 at 06:53:58

Remove CVS-Ids.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1dnl Check for target gcc
2dnl
3
4AC_DEFUN([RTEMS_PROG_CC],
5[
6AC_BEFORE([$0], [AC_PROG_CPP])dnl
7AC_BEFORE([$0], [AC_PROG_CC])dnl
8AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
9
10RTEMS_CHECK_TOOL(CC,gcc)
11test -z "$CC" && \
12  AC_MSG_ERROR([no acceptable cc found in \$PATH])
13AC_PROG_CC
14AC_PROG_CPP
15])
16
17AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
18[
19dnl check target cc
20RTEMS_PROG_CC
21dnl check if the compiler supports -isystem
22RTEMS_GCC_ISYSTEM
23dnl check if the target compiler may use --pipe
24RTEMS_GCC_PIPE
25test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
26
27dnl check if the compiler supports --specs
28RTEMS_GCC_SPECS
29
30AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
31GCCSPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
32GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
33AC_SUBST(GCCSPECS)
34
35AS_IF([test x"$rtems_cv_gcc_isystem" = xyes],[
36  RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[
37  RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"
38])
39AC_SUBST(RTEMS_CPPFLAGS)
40
41AS_IF([test "$GCC" = yes],[
42  RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r"
43])
44AC_SUBST(RTEMS_RELLDFLAGS)
45])
Note: See TracBrowser for help on using the repository browser.