source: rtems/aclocal/prog-cxx.m4 @ 986e1113

4.104.114.84.95
Last change on this file since 986e1113 was 4686e5d9, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 22:51:12

2000-11-02 Ralf Corsepius <corsepiu@…>

  • aclocal/canonicalize-tools.m4, aclocal/check-tool.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4: Replace AC_CHECK_TOOL with an RTEMS specific but more restrictive autoconf macro.
  • Property mode set to 100644
File size: 742 bytes
Line 
1dnl
2dnl $Id$
3dnl
4dnl Check for target g++
5dnl
6
7AC_DEFUN(RTEMS_PROG_CXX,
8[
9AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
10AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
11AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl
12
13dnl Only accept g++
14dnl NOTE: This might be too restrictive
15RTEMS_CHECK_TOOL(CXX,g++)
16AC_PROG_CXX
17test -z "$CXX" \
18  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
19])
20
21AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
22[
23  RTEMS_PROG_CXX
24  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
25    AC_MSG_ERROR([***]
26     [Inconsistency in compiler configuration:]
27     [Target C compiler and target C++ compiler]
28     [must both either be cross compilers or native compilers]
29     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
30  fi
31])
Note: See TracBrowser for help on using the repository browser.