Re: [libjava] --enable-symvers tweak for 52700

2012-05-17 Thread Andrew Haley
On 05/17/2012 12:14 AM, Benjamin De Kosnik wrote:
 Allows use of --enable-symvers=gnu-versioned-namespace while
 configuring in libjava. The rest of the target libs that use
 --enable-symvers already handle this. As per libstdc++/52700.
 
 Pretty simple, but will wait for OK for trunk/branch
 
 tested x86/linux

OK, thanks.

Andrew.



[libjava] --enable-symvers tweak for 52700

2012-05-16 Thread Benjamin De Kosnik

Allows use of --enable-symvers=gnu-versioned-namespace while
configuring in libjava. The rest of the target libs that use
--enable-symvers already handle this. As per libstdc++/52700.

Pretty simple, but will wait for OK for trunk/branch

tested x86/linux

trunk
4_7-branch

-benjamin2012-05-16  Benjamin Kosnik  b...@redhat.com

	PR libstdc++/52700
	* configure.ac: Allow gnu, gnu-versioned-namespace for
	--enable-symvers arguments.
	* configure: Regenerate.


diff --git a/libjava/configure.ac b/libjava/configure.ac
index 351b2bd..62c5000 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1805,7 +1805,7 @@ AC_CACHE_CHECK([whether ld supports anonymous version scripts],
  AS_HELP_STRING([--disable-symvers],
 		[disable symbol versioning for libjava]),
[case $enableval in
- yes) libjava_cv_anon_version_script=yes ;;
+ yes|gnu*) libjava_cv_anon_version_script=yes ;;
  no)  libjava_cv_anon_version_script=no ;;
  *)   AC_MSG_ERROR([Unknown argument to enable/disable symvers]);;
 esac],