Karsten Hopp 38fd80
To: vim-dev@vim.org
Karsten Hopp 38fd80
Subject: Patch 7.1.179
Karsten Hopp 38fd80
Fcc: outbox
Karsten Hopp 38fd80
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 38fd80
Mime-Version: 1.0
Karsten Hopp 38fd80
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 38fd80
Content-Transfer-Encoding: 8bit
Karsten Hopp 38fd80
------------
Karsten Hopp 38fd80
Karsten Hopp 38fd80
Patch 7.1.179
Karsten Hopp 38fd80
Problem:    Need to check for TCL 8.5.
Karsten Hopp 38fd80
Solution:   Adjust configure script. (Alexey Froloff)
Karsten Hopp 38fd80
Files:	    src/configure.in, src/auto/configure
Karsten Hopp 38fd80
Karsten Hopp 38fd80
Karsten Hopp 38fd80
*** ../vim-7.1.178/src/configure.in	Sun Nov  4 15:35:23 2007
Karsten Hopp 38fd80
--- src/configure.in	Sun Dec 30 13:55:28 2007
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 759,773 ****
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  if test "$enable_tclinterp" = "yes"; then
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!   dnl on FreeBSD tclsh is a silly script, look for tclsh8.[420]
Karsten Hopp 38fd80
    AC_MSG_CHECKING(--with-tclsh argument)
Karsten Hopp 38fd80
    AC_ARG_WITH(tclsh, [  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)],
Karsten Hopp 38fd80
  	tclsh_name="$withval"; AC_MSG_RESULT($tclsh_name),
Karsten Hopp 38fd80
! 	tclsh_name="tclsh8.4"; AC_MSG_RESULT(no))
Karsten Hopp 38fd80
    AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
Karsten Hopp 38fd80
    AC_SUBST(vi_cv_path_tcl)
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!   dnl when no specific version specified, also try 8.2 and 8.0
Karsten Hopp 38fd80
    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Karsten Hopp 38fd80
      tclsh_name="tclsh8.2"
Karsten Hopp 38fd80
      AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
Karsten Hopp 38fd80
--- 759,777 ----
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  if test "$enable_tclinterp" = "yes"; then
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!   dnl on FreeBSD tclsh is a silly script, look for tclsh8.[5420]
Karsten Hopp 38fd80
    AC_MSG_CHECKING(--with-tclsh argument)
Karsten Hopp 38fd80
    AC_ARG_WITH(tclsh, [  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)],
Karsten Hopp 38fd80
  	tclsh_name="$withval"; AC_MSG_RESULT($tclsh_name),
Karsten Hopp 38fd80
! 	tclsh_name="tclsh8.5"; AC_MSG_RESULT(no))
Karsten Hopp 38fd80
    AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
Karsten Hopp 38fd80
    AC_SUBST(vi_cv_path_tcl)
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!   dnl when no specific version specified, also try 8.4, 8.2 and 8.0
Karsten Hopp 38fd80
!   if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
Karsten Hopp 38fd80
!     tclsh_name="tclsh8.4"
Karsten Hopp 38fd80
!     AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
Karsten Hopp 38fd80
!   fi
Karsten Hopp 38fd80
    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Karsten Hopp 38fd80
      tclsh_name="tclsh8.2"
Karsten Hopp 38fd80
      AC_PATH_PROG(vi_cv_path_tcl, $tclsh_name)
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 810,815 ****
Karsten Hopp 38fd80
--- 814,820 ----
Karsten Hopp 38fd80
  	AC_MSG_CHECKING(for location of tclConfig.sh script)
Karsten Hopp 38fd80
  	if test "x$MACOSX" != "xyes"; then
Karsten Hopp 38fd80
  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
Karsten Hopp 38fd80
+ 	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
Karsten Hopp 38fd80
  	else
Karsten Hopp 38fd80
  	  dnl For Mac OS X 10.3, use the OS-provided framework location
Karsten Hopp 38fd80
  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 830,835 ****
Karsten Hopp 38fd80
--- 835,841 ----
Karsten Hopp 38fd80
  	  AC_MSG_RESULT(<not found>)
Karsten Hopp 38fd80
  	  AC_MSG_CHECKING(for Tcl library by myself)
Karsten Hopp 38fd80
  	  tcllib=`echo $tclinc | sed s/include/lib/g`
Karsten Hopp 38fd80
+ 	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
Karsten Hopp 38fd80
  	  for ext in .so .a ; do
Karsten Hopp 38fd80
  	    for ver in "" $tclver ; do
Karsten Hopp 38fd80
  	      for try in $tcllib ; do
Karsten Hopp 38fd80
*** ../vim-7.1.178/src/auto/configure	Sun Nov  4 15:35:23 2007
Karsten Hopp 38fd80
--- src/auto/configure	Sun Dec 30 13:55:35 2007
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 4445,4451 ****
Karsten Hopp 38fd80
    tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
Karsten Hopp 38fd80
  echo "${ECHO_T}$tclsh_name" >&6
Karsten Hopp 38fd80
  else
Karsten Hopp 38fd80
!   tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
Karsten Hopp 38fd80
  echo "${ECHO_T}no" >&6
Karsten Hopp 38fd80
  fi;
Karsten Hopp 38fd80
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
Karsten Hopp 38fd80
--- 4445,4451 ----
Karsten Hopp 38fd80
    tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
Karsten Hopp 38fd80
  echo "${ECHO_T}$tclsh_name" >&6
Karsten Hopp 38fd80
  else
Karsten Hopp 38fd80
!   tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
Karsten Hopp 38fd80
  echo "${ECHO_T}no" >&6
Karsten Hopp 38fd80
  fi;
Karsten Hopp 38fd80
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 4489,4495 ****
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!     if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Karsten Hopp 38fd80
      tclsh_name="tclsh8.2"
Karsten Hopp 38fd80
      # Extract the first word of "$tclsh_name", so it can be a program name with args.
Karsten Hopp 38fd80
  set dummy $tclsh_name; ac_word=$2
Karsten Hopp 38fd80
--- 4489,4537 ----
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
  
Karsten Hopp 38fd80
!     if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
Karsten Hopp 38fd80
!     tclsh_name="tclsh8.4"
Karsten Hopp 38fd80
!     # Extract the first word of "$tclsh_name", so it can be a program name with args.
Karsten Hopp 38fd80
! set dummy $tclsh_name; ac_word=$2
Karsten Hopp 38fd80
! echo "$as_me:$LINENO: checking for $ac_word" >&5
Karsten Hopp 38fd80
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Karsten Hopp 38fd80
! if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
Karsten Hopp 38fd80
!   echo $ECHO_N "(cached) $ECHO_C" >&6
Karsten Hopp 38fd80
! else
Karsten Hopp 38fd80
!   case $vi_cv_path_tcl in
Karsten Hopp 38fd80
!   [\\/]* | ?:[\\/]*)
Karsten Hopp 38fd80
!   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
Karsten Hopp 38fd80
!   ;;
Karsten Hopp 38fd80
!   *)
Karsten Hopp 38fd80
!   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Karsten Hopp 38fd80
! for as_dir in $PATH
Karsten Hopp 38fd80
! do
Karsten Hopp 38fd80
!   IFS=$as_save_IFS
Karsten Hopp 38fd80
!   test -z "$as_dir" && as_dir=.
Karsten Hopp 38fd80
!   for ac_exec_ext in '' $ac_executable_extensions; do
Karsten Hopp 38fd80
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Karsten Hopp 38fd80
!     ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
Karsten Hopp 38fd80
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Karsten Hopp 38fd80
!     break 2
Karsten Hopp 38fd80
!   fi
Karsten Hopp 38fd80
! done
Karsten Hopp 38fd80
! done
Karsten Hopp 38fd80
! 
Karsten Hopp 38fd80
!   ;;
Karsten Hopp 38fd80
! esac
Karsten Hopp 38fd80
! fi
Karsten Hopp 38fd80
! vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
Karsten Hopp 38fd80
! 
Karsten Hopp 38fd80
! if test -n "$vi_cv_path_tcl"; then
Karsten Hopp 38fd80
!   echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
Karsten Hopp 38fd80
! echo "${ECHO_T}$vi_cv_path_tcl" >&6
Karsten Hopp 38fd80
! else
Karsten Hopp 38fd80
!   echo "$as_me:$LINENO: result: no" >&5
Karsten Hopp 38fd80
! echo "${ECHO_T}no" >&6
Karsten Hopp 38fd80
! fi
Karsten Hopp 38fd80
! 
Karsten Hopp 38fd80
!   fi
Karsten Hopp 38fd80
!   if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Karsten Hopp 38fd80
      tclsh_name="tclsh8.2"
Karsten Hopp 38fd80
      # Extract the first word of "$tclsh_name", so it can be a program name with args.
Karsten Hopp 38fd80
  set dummy $tclsh_name; ac_word=$2
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 4649,4654 ****
Karsten Hopp 38fd80
--- 4691,4697 ----
Karsten Hopp 38fd80
  echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Karsten Hopp 38fd80
  	if test "x$MACOSX" != "xyes"; then
Karsten Hopp 38fd80
  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
Karsten Hopp 38fd80
+ 	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
Karsten Hopp 38fd80
  	else
Karsten Hopp 38fd80
  	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
Karsten Hopp 38fd80
  	fi
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 4668,4673 ****
Karsten Hopp 38fd80
--- 4711,4717 ----
Karsten Hopp 38fd80
  	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
Karsten Hopp 38fd80
  echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Karsten Hopp 38fd80
  	  tcllib=`echo $tclinc | sed s/include/lib/g`
Karsten Hopp 38fd80
+ 	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
Karsten Hopp 38fd80
  	  for ext in .so .a ; do
Karsten Hopp 38fd80
  	    for ver in "" $tclver ; do
Karsten Hopp 38fd80
  	      for try in $tcllib ; do
Karsten Hopp 38fd80
*** ../vim-7.1.178/src/version.c	Tue Jan  1 15:42:45 2008
Karsten Hopp 38fd80
--- src/version.c	Tue Jan  1 16:24:07 2008
Karsten Hopp 38fd80
***************
Karsten Hopp 38fd80
*** 668,669 ****
Karsten Hopp 38fd80
--- 668,671 ----
Karsten Hopp 38fd80
  {   /* Add new patch number below this line */
Karsten Hopp 38fd80
+ /**/
Karsten Hopp 38fd80
+     179,
Karsten Hopp 38fd80
  /**/
Karsten Hopp 38fd80
Karsten Hopp 38fd80
-- 
Karsten Hopp 38fd80
Just think of all the things we haven't thought of yet.
Karsten Hopp 38fd80
Karsten Hopp 38fd80
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 38fd80
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 38fd80
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 38fd80
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///