source: rtems/macros/prog-cxx.m4 @ 3174a7ed

4.104.114.84.9
Last change on this file since 3174a7ed was 3174a7ed, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 31, 2000 at 9:20:00 PM

2000-10-30 Ralf Corsepius <corsepiu@…>

  • configure.in: New, Cygnus/GNU style configuration.
  • Makefile.am: Add macros/, reflect new configure.in, ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros
  • automake/compile.am: BSP_SPECS, remove RTEMS_CANONICALIZATION.
  • automake/lib.am: Remove RTEMS_CANONICALIZATION.
  • macros/tool-prefix.m4: Remove.
  • macros/target.m4: Remove RTEMS_CONFIG_SUBDIRS, RTEMS_OUTPUT_SUBDIRS.
  • macros/enable-rtemsbsp.m4: Add RTEMS_CONFIG_PER_BSP, add setting RTEMS_ROOT.
  • macros/i386-gas-code16.m4: Define NEW_GAS only for 16bit mode-
  • macros/multilib.m4: Various minor fixes.
  • macros/project-root.m4: Remove setting PROJECT_TOPdir, PROJECT_ROOT, RTEMS_ROOT.
  • macros/rtems-top.m4: Remove RTEMS_CANONICALIZATION, TARGET_SUBDIRS; Add with_target_subdirs, PROJECT_TOPdir, PROJECT_ROOT.
  • Property mode set to 100644
File size: 739 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
15AC_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.