Sync from GCC
[deliverable/binutils-gdb.git] / config / gxx-include-dir.m4
index 0e6e4ffc397500e46cee0074e97e37a32d716e2b..4f54d427f7e2af158ec2946dd4376490b78670d7 100644 (file)
@@ -17,7 +17,13 @@ case "${with_gxx_include_dir}" in
       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
       *)
        libstdcxx_incdir='c++/$(gcc_version)'
-       gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
+       gxx_include_dir='include/$(libstdcxx_incdir)'
+       if test -n "$with_cross_host" && 
+           test x"$with_cross_host" != x"no"; then     
+          gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
+        else
+          gxx_include_dir='${prefix}/'"$gxx_include_dir"
+        fi;;
     esac ;;
   *) gxx_include_dir=${with_gxx_include_dir} ;;
 esac
This page took 0.027593 seconds and 4 git commands to generate.