source: rtems/c/src/aclocal/prog-cxx.m4 @ 6c2b5324

4.104.114.84.9
Last change on this file since 6c2b5324 was 6c2b5324, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 6, 2005 at 10:45:41 AM

2005-01-06 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Pass CFLAGS to testsuites configure.
  • aclocal/prog-cxx.m4: Don't invoke _RTEMS_FLAGS to set up RTEMS_CXXFLAGS. Setup CXXFLAGS from CFLAGS.
  • Property mode set to 100644
File size: 817 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  CXXFLAGS=${CXXFLAGS-${CFLAGS}}
15
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
21
22  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
23    AC_MSG_ERROR([***]
24     [Inconsistency in compiler configuration:]
25     [Target C compiler and target C++ compiler]
26     [must both either be cross compilers or native compilers]
27     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
28  fi
29
30else
31## Work-around to a bug in automake
32AM_CONDITIONAL([am__fastdepCXX],[false])
33fi
34])
Note: See TracBrowser for help on using the repository browser.