OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [aclocal/] [prog-cc.m4] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl
2
dnl prog-cc.m4,v 1.2 2002/07/01 09:20:43 ralf Exp
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
RTEMS_CHECK_TOOL(CC,gcc)
14
test -z "$CC" && \
15
  AC_MSG_ERROR([no acceptable cc found in \$PATH])
16
AC_PROG_CC
17
AC_PROG_CPP
18
 
19
AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
20
])
21
 
22
AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
23
[
24
dnl check target cc
25
RTEMS_PROG_CC
26
dnl check if the compiler supports --specs
27
RTEMS_GCC_SPECS
28
dnl check if the target compiler may use --pipe
29
RTEMS_GCC_PIPE
30
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
31
 
32
if test "$GCC" = yes; then
33
]
34
m4_if([$1],,[],[CPPFLAGS="$CPPFLAGS $1"])
35
[
36
CFLAGS="-g -Wall"
37
fi
38
 
39
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
40
#case $build_os in
41
#*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
42
#*) ;;
43
#esac
44
AC_SUBST(GCCSED)
45
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.