source: rtems/aclocal/prog-cc.m4 @ f289c09

4.104.114.84.9
Last change on this file since f289c09 was f289c09, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 15, 2002 at 2:13:01 PM

2002-11-15 Ralf Corsepius <corsepiu@…>

  • acinclude.m4: Add CXX_FOR_*, CXXFLAGS_FOR_*. Fix stupid typo (continue/configure).
  • aclocal/prog-cc.m4: Remove obsolete comments. Acknowledge CFLAGS.
  • Property mode set to 100644
File size: 876 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
19AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
20])
21
22AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
23[
24dnl check target cc
25RTEMS_PROG_CC
26dnl check if the compiler supports --specs
27RTEMS_GCC_SPECS
28dnl check if the target compiler may use --pipe
29RTEMS_GCC_PIPE
30test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
31
32if test "$GCC" = yes; then
33]
34m4_if([$1],,[],[CPPFLAGS="$CPPFLAGS $1"])
35[
36CFLAGS=${CFLAGS--g -Wall}
37fi
38
39dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
40case $build_os in
41*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
42*) ;;
43esac
44AC_SUBST(GCCSED)
45])
Note: See TracBrowser for help on using the repository browser.