OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [config/] [gxx-include-dir.m4] - Diff between revs 816 and 818

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 818
dnl Usage: TL_AC_GXX_INCLUDE_DIR
dnl Usage: TL_AC_GXX_INCLUDE_DIR
dnl
dnl
dnl Set $gxx_include_dir to the location of the installed C++ include
dnl Set $gxx_include_dir to the location of the installed C++ include
dnl directory.  The value depends on $gcc_version and the configuration
dnl directory.  The value depends on $gcc_version and the configuration
dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs.
dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs.
dnl
dnl
dnl If you change the default here, you'll need to change the gcc and
dnl If you change the default here, you'll need to change the gcc and
dnl libstdc++-v3 subdirectories too.
dnl libstdc++-v3 subdirectories too.
AC_DEFUN([TL_AC_GXX_INCLUDE_DIR],
AC_DEFUN([TL_AC_GXX_INCLUDE_DIR],
[
[
case "${with_gxx_include_dir}" in
case "${with_gxx_include_dir}" in
  yes)
  yes)
    AC_MSG_ERROR([--with-gxx-include-dir=[[dir]] requires a directory])
    AC_MSG_ERROR([--with-gxx-include-dir=[[dir]] requires a directory])
    ;;
    ;;
  no | "")
  no | "")
    case "${enable_version_specific_runtime_libs}" in
    case "${enable_version_specific_runtime_libs}" in
      yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
      yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
      *)
      *)
        libstdcxx_incdir='c++/$(gcc_version)'
        libstdcxx_incdir='c++/$(gcc_version)'
        gxx_include_dir='include/$(libstdcxx_incdir)'
        gxx_include_dir='include/$(libstdcxx_incdir)'
        if test -n "$with_cross_host" &&
        if test -n "$with_cross_host" &&
           test x"$with_cross_host" != x"no"; then
           test x"$with_cross_host" != x"no"; then
          gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
          gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
        else
        else
          gxx_include_dir='${prefix}/'"$gxx_include_dir"
          gxx_include_dir='${prefix}/'"$gxx_include_dir"
        fi;;
        fi;;
    esac ;;
    esac ;;
  *) gxx_include_dir=${with_gxx_include_dir} ;;
  *) gxx_include_dir=${with_gxx_include_dir} ;;
esac
esac
AC_SUBST(gxx_include_dir)
AC_SUBST(gxx_include_dir)
AC_SUBST(libstdcxx_incdir)
AC_SUBST(libstdcxx_incdir)
])
])
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.