summaryrefslogtreecommitdiffstats
path: root/unix/aclocal.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-14 08:34:48 (GMT)
committerhobbs <hobbs>2000-04-14 08:34:48 (GMT)
commita3369712cfd623421640d3efce3d26dc8bfd3955 (patch)
treedf8695f2a5001ed124747a2bf10c120d2d5b1312 /unix/aclocal.m4
parenteadd91e0acd18a46a5897e280289e1782a634f4a (diff)
downloadtk-a3369712cfd623421640d3efce3d26dc8bfd3955.zip
tk-a3369712cfd623421640d3efce3d26dc8bfd3955.tar.gz
tk-a3369712cfd623421640d3efce3d26dc8bfd3955.tar.bz2
* unix/tkUnixScale.c:
* mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue) to tkScale.c. Caused an associated variable to be immediately set [Bug: 4833] * unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added --enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
Diffstat (limited to 'unix/aclocal.m4')
-rw-r--r--unix/aclocal.m441
1 files changed, 34 insertions, 7 deletions
diff --git a/unix/aclocal.m4 b/unix/aclocal.m4
index 58e1ece..afb6fb8 100644
--- a/unix/aclocal.m4
+++ b/unix/aclocal.m4
@@ -363,6 +363,15 @@ AC_DEFUN(SC_ENABLE_THREADS, [
AC_MSG_WARN("Tk on Unix is known to have problems with thread support. It is recommended that Tk be used with a non-thread enabled Tcl.")
AC_CHECK_LIB(pthread,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
+ if test "$tcl_ok" = "no"; then
+ # Check a little harder for __pthread_mutex_init in the same
+ # library, as some systems hide it there until pthread.h is
+ # defined. We could alternatively do an AC_TRY_COMPILE with
+ # pthread.h, but that will work with libpthread really doesn't
+ # exist, like AIX 4.2. [Bug: 4359]
+ AC_CHECK_LIB(pthread,__pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
+ fi
+
if test "$tcl_ok" = "yes"; then
# The space is needed
THREADS_LIBS=" -lpthread"
@@ -504,19 +513,32 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [
AC_DEFUN(SC_CONFIG_CFLAGS, [
- # Step 0: Enable 64 bit support?
+ # Step 0.a: Enable 64 bit support?
- AC_MSG_CHECKING([if 64bit support is enabled])
- AC_ARG_ENABLE(64bit,[ --enable-64bit enable 64bit support],,enableval="no")
+ AC_MSG_CHECKING([if 64bit support is requested])
+ AC_ARG_ENABLE(64bit,[ --enable-64bit enable 64bit support (where applicable)],,enableval="no")
if test "$enableval" = "yes"; then
- AC_MSG_RESULT(Will compile with 64bit support)
do64bit=yes
else
do64bit=no
fi
AC_MSG_RESULT($do64bit)
+ # Step 0.b: Enable Solaris 64 bit VIS support?
+
+ AC_MSG_CHECKING([if 64bit Sparc VIS support is requested])
+ AC_ARG_ENABLE(64bit-vis,[ --enable-64bit-vis enable 64bit Sparc VIS support],,enableval="no")
+
+ if test "$enableval" = "yes"; then
+ # Force 64bit on with VIS
+ do64bit=yes
+ do64bitVIS=yes
+ else
+ do64bitVIS=no
+ fi
+ AC_MSG_RESULT($do64bitVIS)
+
# Step 1: set the variable "system" to hold the name and version number
# for the system. This can usually be done via the "uname" command, but
# there are a few systems, like Next, where this doesn't work.
@@ -923,8 +945,13 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
if test "$arch" = "sparcv9 sparc" ; then
if test "$using_gcc" = "no" ; then
do64bit_ok=yes
- EXTRA_CFLAGS="-xarch=v9"
- LDFLAGS="-xarch=v9"
+ if test "$do64bitVIS" = "yes" ; then
+ EXTRA_CFLAGS="-xarch=v9a"
+ LDFLAGS="-xarch=v9a"
+ else
+ EXTRA_CFLAGS="-xarch=v9"
+ LDFLAGS="-xarch=v9"
+ fi
else
AC_MSG_WARN("64bit mode not supported with GCC on $system")
fi
@@ -981,7 +1008,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
esac
if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
- AC_MSG_WARN("64bit support being disabled -- not supported on this platform")
+ AC_MSG_WARN("64bit support being disabled -- don\'t know magic for this platform")
fi
# Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic