Commit b4d3485e by Eric Botcazou Committed by Eric Botcazou

configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only when…

configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only when --with-gxx-include-dir is also specified.

	* configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only
	when --with-gxx-include-dir is also specified.
	* configure: Regenerate.

From-SVN: r260108
parent 573d8a24
2018-05-10 Eric Botcazou <ebotcazou@adacore.com>
* configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only
when --with-gxx-include-dir is also specified.
* configure: Regenerate.
2018-05-09 Jim Wilson <jimw@sifive.com> 2018-05-09 Jim Wilson <jimw@sifive.com>
PR target/84797 PR target/84797
......
...@@ -3580,6 +3580,11 @@ esac ...@@ -3580,6 +3580,11 @@ esac
fi fi
# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
# the former in the latter and, upon success, compute gcc_gxx_include_dir as
# relative to the sysroot.
gcc_gxx_include_dir_add_sysroot=0
# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
if test x${gcc_gxx_include_dir} = x; then if test x${gcc_gxx_include_dir} = x; then
if test x${enable_version_specific_runtime_libs} = xyes; then if test x${enable_version_specific_runtime_libs} = xyes; then
...@@ -3591,15 +3596,10 @@ if test x${gcc_gxx_include_dir} = x; then ...@@ -3591,15 +3596,10 @@ if test x${gcc_gxx_include_dir} = x; then
fi fi
gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
fi fi
fi elif test "${with_sysroot+set}" = set; then
gcc_gxx_include_dir_add_sysroot=0
if test "${with_sysroot+set}" = set; then
gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
if test "${gcc_gxx_without_sysroot}"; then if test "${gcc_gxx_without_sysroot}"; then
if test x${with_sysroot} != x/; then gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
fi
gcc_gxx_include_dir_add_sysroot=1 gcc_gxx_include_dir_add_sysroot=1
fi fi
fi fi
......
...@@ -205,6 +205,11 @@ no) ;; ...@@ -205,6 +205,11 @@ no) ;;
*) gcc_gxx_include_dir=$with_gxx_include_dir ;; *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
esac]) esac])
# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
# the former in the latter and, upon success, compute gcc_gxx_include_dir as
# relative to the sysroot.
gcc_gxx_include_dir_add_sysroot=0
# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
if test x${gcc_gxx_include_dir} = x; then if test x${gcc_gxx_include_dir} = x; then
if test x${enable_version_specific_runtime_libs} = xyes; then if test x${enable_version_specific_runtime_libs} = xyes; then
...@@ -216,15 +221,10 @@ if test x${gcc_gxx_include_dir} = x; then ...@@ -216,15 +221,10 @@ if test x${gcc_gxx_include_dir} = x; then
fi fi
gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
fi fi
fi elif test "${with_sysroot+set}" = set; then
gcc_gxx_include_dir_add_sysroot=0
if test "${with_sysroot+set}" = set; then
gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
if test "${gcc_gxx_without_sysroot}"; then if test "${gcc_gxx_without_sysroot}"; then
if test x${with_sysroot} != x/; then gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
fi
gcc_gxx_include_dir_add_sysroot=1 gcc_gxx_include_dir_add_sysroot=1
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment