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

4.104.114.84.95
Last change on this file since cc8f37c was 0e8262cf, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:21:00

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-cxx.m4, aclocal/check-itron.m4, aclocal/check-multiprocessing.m4, aclocal/check-networking.m4, aclocal/check-posix.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rtemsbsp.m4, aclocal/enable-tests.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-test-no-pause.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 894 bytes
Line 
1dnl
2dnl $Id$
3dnl
4dnl Check for target g++
5dnl
6
7AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
8[
9AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
10AC_REQUIRE([RTEMS_ENABLE_CXX])
11RTEMS_CHECK_TOOL(CXX,g++)
12if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
13then
14_RTEMS_FLAGS([CXXFLAGS],
15  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])
16
17dnl Only accept g++
18dnl NOTE: This might be too restrictive
19test -z "$CXX" \
20  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
21AC_PROG_CXX
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     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
29  fi
30
31else
32## Work-around to a bug in automake
33AM_CONDITIONAL([am__fastdepCXX],[false])
34fi
35])
Note: See TracBrowser for help on using the repository browser.