]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/gxx-include-dir.m4
AVR: target/115065 - Tweak __clzhi2.
[thirdparty/gcc.git] / config / gxx-include-dir.m4
CommitLineData
bb59c339
RS
1dnl Usage: TL_AC_GXX_INCLUDE_DIR
2dnl
3dnl Set $gxx_include_dir to the location of the installed C++ include
4dnl directory. The value depends on $gcc_version and the configuration
5dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs.
6dnl
7dnl If you change the default here, you'll need to change the gcc and
8dnl libstdc++-v3 subdirectories too.
9AC_DEFUN([TL_AC_GXX_INCLUDE_DIR],
10[
11case "${with_gxx_include_dir}" in
12 yes)
13 AC_MSG_ERROR([--with-gxx-include-dir=[[dir]] requires a directory])
14 ;;
15 no | "")
16 case "${enable_version_specific_runtime_libs}" in
e9bbd9d7 17 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
bb59c339 18 *)
e9bbd9d7 19 libstdcxx_incdir='c++/$(gcc_version)'
505692b0
DD
20 gxx_include_dir='include/$(libstdcxx_incdir)'
21 if test -n "$with_cross_host" &&
22 test x"$with_cross_host" != x"no"; then
23 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24 else
25 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26 fi;;
bb59c339
RS
27 esac ;;
28 *) gxx_include_dir=${with_gxx_include_dir} ;;
29esac
30AC_SUBST(gxx_include_dir)
31AC_SUBST(libstdcxx_incdir)
32])