3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.258
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.258
3ef2ca
Problem:    Configure fails if $CC contains options.
3ef2ca
Solution:   Remove quotes around $CC. (Paul Barker)
3ef2ca
Files:	    src/configure.in, src/auto/configure
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.257/src/configure.in	2014-04-10 20:00:03.708106386 +0200
3ef2ca
--- src/configure.in	2014-04-12 13:00:51.332428899 +0200
3ef2ca
***************
3ef2ca
*** 46,55 ****
3ef2ca
  fi
3ef2ca
  if test "$GCC" = yes; then
3ef2ca
    dnl method that should work for nearly all versions
3ef2ca
!   gccversion=`"$CC" -dumpversion`
3ef2ca
    if test "x$gccversion" = "x"; then
3ef2ca
      dnl old method; fall-back for when -dumpversion doesn't work
3ef2ca
!     gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
3ef2ca
    fi
3ef2ca
    dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki
3ef2ca
    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3ef2ca
--- 46,55 ----
3ef2ca
  fi
3ef2ca
  if test "$GCC" = yes; then
3ef2ca
    dnl method that should work for nearly all versions
3ef2ca
!   gccversion=`$CC -dumpversion`
3ef2ca
    if test "x$gccversion" = "x"; then
3ef2ca
      dnl old method; fall-back for when -dumpversion doesn't work
3ef2ca
!     gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
3ef2ca
    fi
3ef2ca
    dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki
3ef2ca
    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3ef2ca
***************
3ef2ca
*** 68,74 ****
3ef2ca
  dnl the version number of the clang in use.
3ef2ca
  dnl Note that this does not work to get the version of clang 3.1 or 3.2.
3ef2ca
  AC_MSG_CHECKING(for recent clang version)
3ef2ca
! CLANG_VERSION_STRING=`"$CC" --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*$/\1/p'`
3ef2ca
  if test x"$CLANG_VERSION_STRING" != x"" ; then
3ef2ca
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*/\1/p'`
3ef2ca
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[[0-9]][[0-9]]*\.\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*/\1/p'`
3ef2ca
--- 68,74 ----
3ef2ca
  dnl the version number of the clang in use.
3ef2ca
  dnl Note that this does not work to get the version of clang 3.1 or 3.2.
3ef2ca
  AC_MSG_CHECKING(for recent clang version)
3ef2ca
! CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*$/\1/p'`
3ef2ca
  if test x"$CLANG_VERSION_STRING" != x"" ; then
3ef2ca
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*/\1/p'`
3ef2ca
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[[0-9]][[0-9]]*\.\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*/\1/p'`
3ef2ca
*** ../vim-7.4.257/src/auto/configure	2014-04-10 20:00:03.716106386 +0200
3ef2ca
--- src/auto/configure	2014-04-12 13:00:58.436428915 +0200
3ef2ca
***************
3ef2ca
*** 4074,4082 ****
3ef2ca
    test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3ef2ca
  fi
3ef2ca
  if test "$GCC" = yes; then
3ef2ca
!     gccversion=`"$CC" -dumpversion`
3ef2ca
    if test "x$gccversion" = "x"; then
3ef2ca
!         gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3ef2ca
    fi
3ef2ca
      if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3ef2ca
      echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3ef2ca
--- 4074,4082 ----
3ef2ca
    test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3ef2ca
  fi
3ef2ca
  if test "$GCC" = yes; then
3ef2ca
!     gccversion=`$CC -dumpversion`
3ef2ca
    if test "x$gccversion" = "x"; then
3ef2ca
!         gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3ef2ca
    fi
3ef2ca
      if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3ef2ca
      echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3ef2ca
***************
3ef2ca
*** 4091,4097 ****
3ef2ca
  
3ef2ca
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
3ef2ca
  $as_echo_n "checking for recent clang version... " >&6; }
3ef2ca
! CLANG_VERSION_STRING=`"$CC" --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
3ef2ca
  if test x"$CLANG_VERSION_STRING" != x"" ; then
3ef2ca
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
3ef2ca
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
3ef2ca
--- 4091,4097 ----
3ef2ca
  
3ef2ca
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
3ef2ca
  $as_echo_n "checking for recent clang version... " >&6; }
3ef2ca
! CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
3ef2ca
  if test x"$CLANG_VERSION_STRING" != x"" ; then
3ef2ca
    CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
3ef2ca
    CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
3ef2ca
*** ../vim-7.4.257/src/version.c	2014-04-12 12:26:25.856424387 +0200
3ef2ca
--- src/version.c	2014-04-12 13:05:09.372429463 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     258,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Never go to the toilet in a paperless office.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///