summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-11 07:53:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-11 07:53:01 (GMT)
commitb6a16b508597ad78096256d1b1d4d12ab31e11c0 (patch)
tree40e15244415cc31756d42b194314776d15bb4842 /unix/configure
parente536b3536ed366b76ba05f7b6bbfddbba3127965 (diff)
downloadtk-b6a16b508597ad78096256d1b1d4d12ab31e11c0.zip
tk-b6a16b508597ad78096256d1b1d4d12ab31e11c0.tar.gz
tk-b6a16b508597ad78096256d1b1d4d12ab31e11c0.tar.bz2
sync with Tcl version of tcl.m4
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/configure b/unix/configure
index 79eff52..b830b2e 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4316,7 +4316,7 @@ if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$GCC" = yes -a "$SHARED_BUILD" = 1; then
+ if test "$SHARED_BUILD" = 1; then
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
cat >conftest.$ac_ext <<_ACEOF
@@ -4329,6 +4329,9 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
+#if !defined(__GNUC__) || __GNUC__ < 4
+#error visibility hidden is not supported for this compiler
+#endif
;
return 0;