summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 11:40:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 11:40:35 (GMT)
commit8c516639abe302098e2202d7824bd9a23f8ca532 (patch)
tree21f56eae1643f8e1d52c3cdc18d3d0cc9cae1f13 /unix/configure
parentaff97042289b6c2c5fd35cb8413deca7054ab0a7 (diff)
downloadtcl-8c516639abe302098e2202d7824bd9a23f8ca532.zip
tcl-8c516639abe302098e2202d7824bd9a23f8ca532.tar.gz
tcl-8c516639abe302098e2202d7824bd9a23f8ca532.tar.bz2
set default MODULE_SCOPE=extern, in case no other value is determined
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure
index 9fbb864..8701f7e 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6543,6 +6543,11 @@ echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6
CFLAGS="$CFLAGS -fvisibility=hidden"
+cat >>confdefs.h <<\_ACEOF
+#define MODULE_SCOPE extern
+_ACEOF
+
+
else
@@ -8164,6 +8169,7 @@ cat >>confdefs.h <<\_ACEOF
#define MODULE_SCOPE __private_extern__
_ACEOF
+ tcl_cv_cc_visibility_hidden=yes
fi
@@ -9036,6 +9042,22 @@ fi
fi
+ if test "$tcl_cv_cc_visibility_hidden" != yes; then
+
+
+cat >>confdefs.h <<\_ACEOF
+#define MODULE_SCOPE extern
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_VIZ
+_ACEOF
+
+
+fi
+
+
if test "$SHARED_LIB_SUFFIX" = ""; then
SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}'