4.104.114.84.95
Last change
on this file since 0598fb8 was
ea3f559,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/05/05 at 17:52:33
|
2005-01-05 Ralf Corsepius <ralf.corsepius@…>
- configure.ac: Pass CFLAGS to cpukit configure.
- aclocal/rtems-flags.m4: Remove (Unused).
- aclocal/prog-ccas.m4: Remove $(GCCSPECS).
- aclocal/env-rtemsbsp.m4:
Comment out CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CPU_CFLAGS.
- aclocal/prog-cc.m4: Don't invoke _RTEMS_FLAGS to set up
RTEMS_CFLAGS.
- automake/compile.am: AM_CFLAGS = RTEMS_CFLAGS. Add AM_CXXFLAGS.
Remove CPPFLAGS, CFLAGS, CPU_CFLAGS, CFLAGS_OPTIMIZE, ASFLAGS.
Cleanup comments.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | dnl Check for target gcc |
---|
5 | dnl |
---|
6 | |
---|
7 | AC_DEFUN([RTEMS_PROG_CC], |
---|
8 | [ |
---|
9 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
10 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
11 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
12 | |
---|
13 | CFLAGS=${CFLAGS-${CPU_CFLAGS} ${CFLAGS_OPTIMIZE_V}} |
---|
14 | |
---|
15 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
16 | test -z "$CC" && \ |
---|
17 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
18 | AC_PROG_CC |
---|
19 | AC_PROG_CPP |
---|
20 | |
---|
21 | AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes") |
---|
22 | ]) |
---|
23 | |
---|
24 | AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET], |
---|
25 | [ |
---|
26 | dnl check target cc |
---|
27 | RTEMS_PROG_CC |
---|
28 | dnl check if the compiler supports -isystem |
---|
29 | RTEMS_GCC_ISYSTEM |
---|
30 | dnl check if the target compiler may use --pipe |
---|
31 | RTEMS_GCC_PIPE |
---|
32 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
33 | |
---|
34 | dnl check if the compiler supports --specs |
---|
35 | RTEMS_GCC_SPECS |
---|
36 | |
---|
37 | if test "$GCC" = yes; then |
---|
38 | RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" |
---|
39 | m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) |
---|
40 | fi |
---|
41 | AC_SUBST(RTEMS_CFLAGS) |
---|
42 | |
---|
43 | AS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[ |
---|
44 | RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[ |
---|
45 | RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)" |
---|
46 | ]) |
---|
47 | AC_SUBST(RTEMS_CPPFLAGS) |
---|
48 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.