summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/prog-cc.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 06:50:36 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 06:50:36 +0000
commit309a9dc8dba6e248091b45297ef2d95fd9fd1be8 (patch)
tree7e14080e34f09d926ca649f587b75ddaffa99da2 /cpukit/aclocal/prog-cc.m4
parent2003-02-26 RTEMS (diff)
downloadrtems-309a9dc8dba6e248091b45297ef2d95fd9fd1be8.tar.bz2
Merger from rtems-4-6-branch.
Diffstat (limited to 'cpukit/aclocal/prog-cc.m4')
-rw-r--r--cpukit/aclocal/prog-cc.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/aclocal/prog-cc.m4 b/cpukit/aclocal/prog-cc.m4
index 4ed2f5730c..117229bbe4 100644
--- a/cpukit/aclocal/prog-cc.m4
+++ b/cpukit/aclocal/prog-cc.m4
@@ -26,8 +26,8 @@ AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
[
dnl check target cc
RTEMS_PROG_CC
-dnl check if the compiler supports --specs
-RTEMS_GCC_SPECS
+dnl check if the compiler supports -isystem
+RTEMS_GCC_ISYSTEM
dnl check if the target compiler may use --pipe
RTEMS_GCC_PIPE
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
@@ -36,4 +36,11 @@ if test "$GCC" = yes; then
RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"
m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])
fi
+
+AS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[
+ RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[
+ RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"
+])
+AC_SUBST(RTEMS_CPPFLAGS)
+
])