source: rtems/testsuites/aclocal/prog-cxx.m4 @ cf65bb00

4.115
Last change on this file since cf65bb00 was cf65bb00, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/18/12 at 05:37:45

Remove obsolete reference to posix bsp.

  • Property mode set to 100644
File size: 804 bytes
RevLine 
[33a105fb]1dnl
[3c69a774]2dnl Check for target g++
3dnl
4
[0e8262cf]5AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
[3c69a774]6[
7AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
8AC_REQUIRE([RTEMS_ENABLE_CXX])
[a4b8a37d]9
10# If CXXFLAGS is not set, default to CFLAGS
11CXXFLAGS=${CXXFLAGS-${CFLAGS}}
12
[3c69a774]13RTEMS_CHECK_TOOL(CXX,g++)
14if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
15then
16dnl Only accept g++
17dnl NOTE: This might be too restrictive
18test -z "$CXX" \
19  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
20AC_PROG_CXX
[d6a6cff2]21AC_PROG_CXXCPP
[3c69a774]22
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  fi
[f8e5121e]29else
30## Work-around to a bug in automake
31AM_CONDITIONAL([am__fastdepCXX],[false])
[3c69a774]32fi
33])
Note: See TracBrowser for help on using the repository browser.