source:
rtems/aclocal/prog-cxx.m4
@
2e0fd427
Last change on this file since 2e0fd427 was 2e0fd427, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 15:44:04 | |
---|---|
|
|
File size: 739 bytes |
Rev | Line | |
---|---|---|
[51c195d5] | 1 | dnl |
2 | dnl $Id$ | |
3 | dnl | |
4 | dnl Check for target g++ | |
5 | dnl | |
[2efdd08] | 6 | |
[51c195d5] | 7 | AC_DEFUN(RTEMS_PROG_CXX, |
8 | [ | |
9 | AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl | |
[b62a92c] | 10 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
[70810dc] | 11 | AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl |
[2efdd08] | 12 | |
[2e0fd427] | 13 | dnl Only accept g++ |
14 | dnl NOTE: This might be too restrictive | |
15 | AC_CHECK_TOOL(CXX,g++) | |
16 | AC_PROG_CXX | |
17 | test -z "$CXX" \ | |
[2efdd08] | 18 | && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) |
[51c195d5] | 19 | ]) |
[6693a68] | 20 | |
21 | AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET, | |
22 | [ | |
23 | RTEMS_PROG_CXX | |
[2e0fd427] | 24 | if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then |
[6693a68] | 25 | AC_MSG_ERROR([***] |
26 | [Inconsistency in compiler configuration:] | |
[2e0fd427] | 27 | [Target C compiler and target C++ compiler] |
[6693a68] | 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.