source: rtems/c/src/aclocal/prog-cc.m4 @ 0afac6a

4.115
Last change on this file since 0afac6a was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

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