From 19af62dbf23ba8ad8ca2b317d0886e38545af4e6 Mon Sep 17 00:00:00 2001
From: Benjamin Kosnik <bkoz@redhat.com>
Date: Thu, 31 May 2012 18:51:27 +0000
Subject: [PATCH] re PR target/51007 (Quadmath I/O doesn't work on MinGW)

2012-05-31  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/51007
        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
        * configure: Regenerated.

From-SVN: r188076
---
 libgfortran/ChangeLog    | 6 ++++++
 libgfortran/configure    | 2 +-
 libgfortran/configure.ac | 2 +-
 libquadmath/ChangeLog    | 6 ++++++
 libquadmath/configure    | 2 +-
 libquadmath/configure.ac | 2 +-
 libssp/ChangeLog         | 6 ++++++
 libssp/configure         | 2 +-
 libssp/configure.ac      | 2 +-
 9 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4ec92adc539c..b629d30dab97 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-31  Benjamin Kosnik  <bkoz@redhat.com>
+
+        PR libstdc++/51007
+        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
+        * configure: Regenerated.
+
 2012-05-31  Tobias Burnus  <burnus@net-b.de>
 
 	Revert:
diff --git a/libgfortran/configure b/libgfortran/configure
index ca33870e9f63..3c1ca430a329 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -5781,7 +5781,7 @@ else
   gfortran_use_symver=yes
 fi
 
-if test "x$gfortran_use_symver" = xyes; then
+if test "x$gfortran_use_symver" != xno; then
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
   cat > conftest.map <<EOF
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
index fc58a5c24b95..97b337e33ec6 100644
--- a/libgfortran/configure.ac
+++ b/libgfortran/configure.ac
@@ -157,7 +157,7 @@ AS_HELP_STRING([--disable-symvers],
   [disable symbol versioning for libgfortran]),
 gfortran_use_symver=$enableval,
 gfortran_use_symver=yes)
-if test "x$gfortran_use_symver" = xyes; then
+if test "x$gfortran_use_symver" != xno; then
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
   cat > conftest.map <<EOF
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index 4c25e8813271..b5e92149e507 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
+
+	PR libstdc++/51007
+	* configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
+	* configure: Regenerated.
+	
 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* configure: Regenerated.
diff --git a/libquadmath/configure b/libquadmath/configure
index e5c3de65164b..8beb1a6255aa 100755
--- a/libquadmath/configure
+++ b/libquadmath/configure
@@ -12355,7 +12355,7 @@ else
   quadmath_use_symver=yes
 fi
 
-if test "x$quadmath_use_symver" = xyes; then
+if test "x$quadmath_use_symver" != xno; then
   if test x$gcc_no_link = xyes; then
     # If we cannot link, we cannot build shared libraries, so do not use
     # symbol versioning.
diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
index 512b9f813915..d3bfb040cd04 100644
--- a/libquadmath/configure.ac
+++ b/libquadmath/configure.ac
@@ -169,7 +169,7 @@ AS_HELP_STRING([--disable-symvers],
   [disable symbol versioning for libquadmath]),
 quadmath_use_symver=$enableval,
 quadmath_use_symver=yes)
-if test "x$quadmath_use_symver" = xyes; then
+if test "x$quadmath_use_symver" != xno; then
   if test x$gcc_no_link = xyes; then
     # If we cannot link, we cannot build shared libraries, so do not use
     # symbol versioning.
diff --git a/libssp/ChangeLog b/libssp/ChangeLog
index 16d4bf6a8b89..eed64ba47f8b 100644
--- a/libssp/ChangeLog
+++ b/libssp/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
+
+        PR libstdc++/51007
+        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
+        * configure: Regenerated.
+
 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* configure: Regenerated.
diff --git a/libssp/configure b/libssp/configure
index eba09f01103f..84b37124e304 100755
--- a/libssp/configure
+++ b/libssp/configure
@@ -4107,7 +4107,7 @@ else
   ssp_use_symver=yes
 fi
 
-if test "x$ssp_use_symver" = xyes; then
+if test "x$ssp_use_symver" != xno; then
   if test x$gcc_no_link = xyes; then
     # If we cannot link, we cannot build shared libraries, so do not use
     # symbol versioning.
diff --git a/libssp/configure.ac b/libssp/configure.ac
index 0eee36ce014a..93dfa8da4704 100644
--- a/libssp/configure.ac
+++ b/libssp/configure.ac
@@ -77,7 +77,7 @@ AS_HELP_STRING([--disable-symvers],
   [disable symbol versioning for libssp]),
 ssp_use_symver=$enableval,
 ssp_use_symver=yes)
-if test "x$ssp_use_symver" = xyes; then
+if test "x$ssp_use_symver" != xno; then
   if test x$gcc_no_link = xyes; then
     # If we cannot link, we cannot build shared libraries, so do not use
     # symbol versioning.
-- 
GitLab