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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [prog-cxx.m4] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl
2
dnl prog-cxx.m4,v 1.12 2002/04/17 13:27:29 joel Exp
3
dnl
4
dnl Check for target g++
5
dnl
6
 
7
AC_DEFUN(RTEMS_PROG_CXX,
8
[
9
AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
10
AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
11
 
12
dnl Only accept g++
13
dnl NOTE: This might be too restrictive
14
RTEMS_CHECK_TOOL(CXX,g++)
15
AC_PROG_CXX
16
test -z "$CXX" \
17
  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
18
])
19
 
20
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
21
[
22
  RTEMS_PROG_CXX
23
  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
24
    AC_MSG_ERROR([***]
25
     [Inconsistency in compiler configuration:]
26
     [Target C compiler and target C++ compiler]
27
     [must both either be cross compilers or native compilers]
28
     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
29
  fi
30
])

powered by: WebSVN 2.1.0

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