Index: tcl.m4
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/tcl.m4,v
retrieving revision 1.221
diff -c -r1.221 tcl.m4
*** tcl.m4	2 Mar 2010 23:51:11 -0000	1.221
--- tcl.m4	2 Mar 2010 23:39:33 -0000	1.222
***************
*** 1052,1067 ****
  
      AC_CACHE_CHECK([if compiler supports visibility "hidden"],
  	tcl_cv_cc_visibility_hidden, [
  	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
  	AC_TRY_LINK([
  	    extern __attribute__((__visibility__("hidden"))) void f(void);
  	    void f(void) {}], [f();], tcl_cv_cc_visibility_hidden=yes,
  	    tcl_cv_cc_visibility_hidden=no)
! 	CFLAGS=$hold_cflags])
!     AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
! 	AC_DEFINE(MODULE_SCOPE,
! 	    [extern __attribute__((__visibility__("hidden")))],
! 	    [Compiler support for module scope symbols])
      ])
  
      # Step 0.d: Disable -rpath support?
--- 1052,1075 ----
  
      AC_CACHE_CHECK([if compiler supports visibility "hidden"],
  	tcl_cv_cc_visibility_hidden, [
- 	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden"
- 	AC_TRY_COMPILE(,, tcl_cv_cc_visibility_hidden=yes,
- 	    tcl_cv_cc_visibility_hidden=no)
- 	CFLAGS=$hold_cflags])
-     AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
- 	CFLAGS="$CFLAGS -fvisibility=hidden"
-     ], [
  	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
  	AC_TRY_LINK([
  	    extern __attribute__((__visibility__("hidden"))) void f(void);
  	    void f(void) {}], [f();], tcl_cv_cc_visibility_hidden=yes,
  	    tcl_cv_cc_visibility_hidden=no)
! 	CFLAGS=$hold_cflags
! 	AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
! 	    AC_DEFINE(MODULE_SCOPE,
! 		[extern __attribute__((__visibility__("hidden")))],
! 		[Compiler support for module scope symbols])
! 	])
      ])
  
      # Step 0.d: Disable -rpath support?
