Ticket #23752: tcl85.diff

File tcl85.diff, 2.0 KB (added by gjasny@…, 12 years ago)

Fixed socklen_t detection and find MacPorts tcl/tk detection

  • unix/configure.in

    old new  
    99
    1010TNM_VERSION=3.0.0
    1111TKI_VERSION=1.5.0
    12 TCL_VERSION=8.4
    13 TK_VERSION=8.4
     12TCL_VERSION=8.5
     13TK_VERSION=8.5
    1414
    1515#----------------------------------------------------------------------------
    1616#       Load the tcl configuration file.
    1717#----------------------------------------------------------------------------
    1818
    19 AC_PATH_PROG(tclsh,tclsh8.4)
     19AC_PATH_PROG(tclsh,tclsh)
    2020if test -n "$tclsh" ; then
    2121    tclsh_prefix=`dirname $tclsh`
    2222    tclsh_prefix=`dirname $tclsh_prefix`
     
    7171
    7272AC_MSG_CHECKING(for tcl version)
    7373AC_MSG_RESULT("$TCL_VERSION")
    74 if test "$TCL_VERSION" != "8.4" ; then
    75     AC_MSG_ERROR("Tcl version 8.4 needed")
    76 fi
     74#if test "$TCL_VERSION" != "8.4" ; then
     75#    AC_MSG_ERROR("Tcl version 8.4 needed")
     76#fi
    7777
    7878BUILD_TARGETS="$BUILD_TARGETS scotty"
    7979INSTALL_TARGETS="$INSTALL_TARGETS tnm-install"
     
    8282#       Load the tk configuration file.
    8383#----------------------------------------------------------------------------
    8484
    85 AC_PATH_PROG(wish,wish8.4)
     85AC_PATH_PROG(wish,wish)
    8686if test -n "$wish" ; then
    8787    wish_prefix=`dirname $wish`
    8888    wish_prefix=`dirname $wish_prefix`
     
    122122
    123123    AC_MSG_CHECKING(for tk version)
    124124    AC_MSG_RESULT("$TK_VERSION")
    125     if test "$TK_VERSION" != "8.4" ; then
    126         AC_MSG_ERROR("Tk version 8.4 needed")
    127     fi
     125#    if test "$TK_VERSION" != "8.4" ; then
     126#        AC_MSG_ERROR("Tk version 8.4 needed")
     127#    fi
    128128
    129129    BUILD_TARGETS="$BUILD_TARGETS tkined"
    130130    INSTALL_TARGETS="$INSTALL_TARGETS tki-install"
     
    259259#       Check for sin_len field in struct sockaddr (BSD-ish).
    260260#----------------------------------------------------------------------------
    261261
    262 AC_CHECK_TYPE(socklen_t,AC_DEFINE(HAVE_SOCKLEN_T))
     262AC_CHECK_TYPE(socklen_t,AC_DEFINE(HAVE_SOCKLEN_T),,[#include <sys/socket.h>])
    263263
    264264AC_CACHE_CHECK([for 'sa_len' in 'struct sockaddr'], ac_cv_struct_sa_len,
    265265[AC_TRY_COMPILE([#include <sys/types.h>