]> gcc.gnu.org Git - gcc.git/commitdiff
configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only when --with-gxx...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 May 2018 09:39:00 +0000 (09:39 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 10 May 2018 09:39:00 +0000 (09:39 +0000)
* 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

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 02d66d8b33eaba28630f0fe6f9ec05d637eaa384..b48117f7569e3aa5c6dbd080c6b37dbed0b00262 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR target/84797
index 5c345ce0fd7c99e34f78191ae8793674a30e67d4..7d69faf549dd77eff44cc6089a6315fbafb801a0 100755 (executable)
@@ -3580,6 +3580,11 @@ esac
 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.
 if test x${gcc_gxx_include_dir} = x; then
   if test x${enable_version_specific_runtime_libs} = xyes; then
@@ -3591,15 +3596,10 @@ if test x${gcc_gxx_include_dir} = x; then
     fi
     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
   fi
-fi
-
-gcc_gxx_include_dir_add_sysroot=0
-if test "${with_sysroot+set}" = set; then
+elif test "${with_sysroot+set}" = set; then
   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
   if test "${gcc_gxx_without_sysroot}"; then
-    if test x${with_sysroot} != x/; then
-      gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
-    fi
+    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
     gcc_gxx_include_dir_add_sysroot=1
   fi
 fi
index 65dbf1f2f80cd135d9f1badd88c8dfbbcea73323..36124b8ce905ab2026536105cc3896587befa29a 100644 (file)
@@ -205,6 +205,11 @@ no)        ;;
 *)     gcc_gxx_include_dir=$with_gxx_include_dir ;;
 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.
 if test x${gcc_gxx_include_dir} = x; then
   if test x${enable_version_specific_runtime_libs} = xyes; then
@@ -216,15 +221,10 @@ if test x${gcc_gxx_include_dir} = x; then
     fi
     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
   fi
-fi
-
-gcc_gxx_include_dir_add_sysroot=0
-if test "${with_sysroot+set}" = set; then
+elif test "${with_sysroot+set}" = set; then
   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
   if test "${gcc_gxx_without_sysroot}"; then
-    if test x${with_sysroot} != x/; then
-      gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
-    fi
+    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
     gcc_gxx_include_dir_add_sysroot=1
   fi
 fi
This page took 0.131158 seconds and 5 git commands to generate.