source: rtems/testsuites/aclocal/prog-cc.m4 @ 9e8c23a

Last change on this file since 9e8c23a was fa6f76bc, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/09/05 at 09:38:03

Apply cpukit_root, project_root to set up GCCSPECS.

  • Property mode set to 100644
File size: 663 bytes
Line 
1dnl
2dnl $Id$
3dnl
4dnl Check for target gcc
5dnl
6
7AC_DEFUN([RTEMS_PROG_CC],
8[
9AC_BEFORE([$0], [AC_PROG_CPP])dnl
10AC_BEFORE([$0], [AC_PROG_CC])dnl
11AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
12
13RTEMS_CHECK_TOOL(CC,gcc)
14test -z "$CC" && \
15  AC_MSG_ERROR([no acceptable cc found in \$PATH])
16AC_PROG_CC
17AC_PROG_CPP
18])
19
20AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
21[
22dnl check target cc
23RTEMS_PROG_CC
24
25AS_IF([test x"$GCC" = xyes],[
26AS_IF([test "${enable_cpukit_root+set}"],[
27  GCCSPECS="-B\$(CPUKIT_ROOT)/lib/"])
28AS_IF([test "${enable_project_root+set}"],[
29  GCCSPECS="$GCCSPECS -B\$(PROJECT_ROOT)/lib/"])
30GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
31AC_SUBST(GCCSPECS)
32])
Note: See TracBrowser for help on using the repository browser.