summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/gcc-isystem.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/gcc-isystem.m4
parent2003-02-26 RTEMS (diff)
downloadrtems-309a9dc8dba6e248091b45297ef2d95fd9fd1be8.tar.bz2
Merger from rtems-4-6-branch.
Diffstat (limited to '')
-rw-r--r--cpukit/aclocal/gcc-isystem.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/cpukit/aclocal/gcc-isystem.m4 b/cpukit/aclocal/gcc-isystem.m4
new file mode 100644
index 0000000000..c230508208
--- /dev/null
+++ b/cpukit/aclocal/gcc-isystem.m4
@@ -0,0 +1,25 @@
+dnl
+dnl $Id$
+dnl
+dnl Check whether the gcc accepts -isystem
+dnl
+
+AC_DEFUN(RTEMS_GCC_ISYSTEM,
+[AC_REQUIRE([RTEMS_PROG_CC])
+AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem,
+[
+rtems_cv_gcc_isystem=no
+if test x"$GCC" = x"yes"; then
+cat << EOF > conftest.h
+int conftest123();
+EOF
+cat << EOF > conftest.c
+#include <conftest.h>
+int conftest123() {}
+EOF
+ if test -z "`${CC} -isystem./ -c conftest.c 2>&1`";then
+ rtems_cv_gcc_isystem=yes
+ fi
+fi
+rm -f conftest*
+])])