3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.224
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.224
3ef2ca
Problem:    /usr/bin/grep on Solaris does not support -F.
3ef2ca
Solution:   Add configure check to find a good grep. (Danek Duvall)
3ef2ca
Files:	    src/configure.in, src/auto/configure
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.223/src/configure.in	2014-03-27 17:40:53.384696360 +0100
3ef2ca
--- src/configure.in	2014-03-27 18:49:24.900759361 +0100
3ef2ca
***************
3ef2ca
*** 14,19 ****
3ef2ca
--- 14,20 ----
3ef2ca
  AC_PROG_CC	dnl required by almost everything
3ef2ca
  AC_PROG_CPP	dnl required by header file checks
3ef2ca
  AC_PROGRAM_EGREP dnl required by AC_EGREP_CPP
3ef2ca
+ AC_PROG_FGREP	dnl finds working grep -F
3ef2ca
  AC_ISC_POSIX	dnl required by AC_C_CROSS
3ef2ca
  AC_PROG_AWK	dnl required for "make html" in ../doc
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 936,942 ****
3ef2ca
  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
3ef2ca
  	fi
3ef2ca
  	if test "X$perlldflags" != "X"; then
3ef2ca
! 	  if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
3ef2ca
  	    LDFLAGS="$perlldflags $LDFLAGS"
3ef2ca
  	  fi
3ef2ca
  	fi
3ef2ca
--- 937,943 ----
3ef2ca
  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
3ef2ca
  	fi
3ef2ca
  	if test "X$perlldflags" != "X"; then
3ef2ca
! 	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
3ef2ca
  	    LDFLAGS="$perlldflags $LDFLAGS"
3ef2ca
  	  fi
3ef2ca
  	fi
3ef2ca
***************
3ef2ca
*** 1727,1733 ****
3ef2ca
  	  dnl configure, so strip these flags first (if present)
3ef2ca
  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
3ef2ca
  	  if test "X$rubyldflags" != "X"; then
3ef2ca
! 	    if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
3ef2ca
  	      LDFLAGS="$rubyldflags $LDFLAGS"
3ef2ca
  	    fi
3ef2ca
  	  fi
3ef2ca
--- 1728,1734 ----
3ef2ca
  	  dnl configure, so strip these flags first (if present)
3ef2ca
  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
3ef2ca
  	  if test "X$rubyldflags" != "X"; then
3ef2ca
! 	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
3ef2ca
  	      LDFLAGS="$rubyldflags $LDFLAGS"
3ef2ca
  	    fi
3ef2ca
  	  fi
3ef2ca
*** ../vim-7.4.223/src/auto/configure	2014-03-27 17:40:53.396696361 +0100
3ef2ca
--- src/auto/configure	2014-03-27 18:49:34.356759506 +0100
3ef2ca
***************
3ef2ca
*** 719,724 ****
3ef2ca
--- 719,725 ----
3ef2ca
  CPP_MM
3ef2ca
  STRIP
3ef2ca
  AWK
3ef2ca
+ FGREP
3ef2ca
  EGREP
3ef2ca
  GREP
3ef2ca
  CPP
3ef2ca
***************
3ef2ca
*** 3695,3701 ****
3ef2ca
  
3ef2ca
  fi
3ef2ca
  rm -f conftest*
3ef2ca
!  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3ef2ca
  $as_echo_n "checking for library containing strerror... " >&6; }
3ef2ca
  if ${ac_cv_search_strerror+:} false; then :
3ef2ca
    $as_echo_n "(cached) " >&6
3ef2ca
--- 3696,3768 ----
3ef2ca
  
3ef2ca
  fi
3ef2ca
  rm -f conftest*
3ef2ca
!  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3ef2ca
! $as_echo_n "checking for fgrep... " >&6; }
3ef2ca
! if ${ac_cv_path_FGREP+:} false; then :
3ef2ca
!   $as_echo_n "(cached) " >&6
3ef2ca
! else
3ef2ca
!   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3ef2ca
!    then ac_cv_path_FGREP="$GREP -F"
3ef2ca
!    else
3ef2ca
!      if test -z "$FGREP"; then
3ef2ca
!   ac_path_FGREP_found=false
3ef2ca
!   # Loop through the user's path and test for each of PROGNAME-LIST
3ef2ca
!   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3ef2ca
! for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3ef2ca
! do
3ef2ca
!   IFS=$as_save_IFS
3ef2ca
!   test -z "$as_dir" && as_dir=.
3ef2ca
!     for ac_prog in fgrep; do
3ef2ca
!     for ac_exec_ext in '' $ac_executable_extensions; do
3ef2ca
!       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3ef2ca
!       as_fn_executable_p "$ac_path_FGREP" || continue
3ef2ca
! # Check for GNU ac_path_FGREP and select it if it is found.
3ef2ca
!   # Check for GNU $ac_path_FGREP
3ef2ca
! case `"$ac_path_FGREP" --version 2>&1` in
3ef2ca
! *GNU*)
3ef2ca
!   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3ef2ca
! *)
3ef2ca
!   ac_count=0
3ef2ca
!   $as_echo_n 0123456789 >"conftest.in"
3ef2ca
!   while :
3ef2ca
!   do
3ef2ca
!     cat "conftest.in" "conftest.in" >"conftest.tmp"
3ef2ca
!     mv "conftest.tmp" "conftest.in"
3ef2ca
!     cp "conftest.in" "conftest.nl"
3ef2ca
!     $as_echo 'FGREP' >> "conftest.nl"
3ef2ca
!     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3ef2ca
!     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3ef2ca
!     as_fn_arith $ac_count + 1 && ac_count=$as_val
3ef2ca
!     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3ef2ca
!       # Best one so far, save it but keep looking for a better one
3ef2ca
!       ac_cv_path_FGREP="$ac_path_FGREP"
3ef2ca
!       ac_path_FGREP_max=$ac_count
3ef2ca
!     fi
3ef2ca
!     # 10*(2^10) chars as input seems more than enough
3ef2ca
!     test $ac_count -gt 10 && break
3ef2ca
!   done
3ef2ca
!   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3ef2ca
! esac
3ef2ca
! 
3ef2ca
!       $ac_path_FGREP_found && break 3
3ef2ca
!     done
3ef2ca
!   done
3ef2ca
!   done
3ef2ca
! IFS=$as_save_IFS
3ef2ca
!   if test -z "$ac_cv_path_FGREP"; then
3ef2ca
!     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3ef2ca
!   fi
3ef2ca
! else
3ef2ca
!   ac_cv_path_FGREP=$FGREP
3ef2ca
! fi
3ef2ca
! 
3ef2ca
!    fi
3ef2ca
! fi
3ef2ca
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3ef2ca
! $as_echo "$ac_cv_path_FGREP" >&6; }
3ef2ca
!  FGREP="$ac_cv_path_FGREP"
3ef2ca
! 
3ef2ca
! 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3ef2ca
  $as_echo_n "checking for library containing strerror... " >&6; }
3ef2ca
  if ${ac_cv_search_strerror+:} false; then :
3ef2ca
    $as_echo_n "(cached) " >&6
3ef2ca
***************
3ef2ca
*** 5480,5486 ****
3ef2ca
  	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
3ef2ca
  	fi
3ef2ca
  	if test "X$perlldflags" != "X"; then
3ef2ca
! 	  if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
3ef2ca
  	    LDFLAGS="$perlldflags $LDFLAGS"
3ef2ca
  	  fi
3ef2ca
  	fi
3ef2ca
--- 5547,5553 ----
3ef2ca
  	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
3ef2ca
  	fi
3ef2ca
  	if test "X$perlldflags" != "X"; then
3ef2ca
! 	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
3ef2ca
  	    LDFLAGS="$perlldflags $LDFLAGS"
3ef2ca
  	  fi
3ef2ca
  	fi
3ef2ca
***************
3ef2ca
*** 6838,6844 ****
3ef2ca
  	if test "X$rubyldflags" != "X"; then
3ef2ca
  	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
3ef2ca
  	  if test "X$rubyldflags" != "X"; then
3ef2ca
! 	    if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
3ef2ca
  	      LDFLAGS="$rubyldflags $LDFLAGS"
3ef2ca
  	    fi
3ef2ca
  	  fi
3ef2ca
--- 6905,6911 ----
3ef2ca
  	if test "X$rubyldflags" != "X"; then
3ef2ca
  	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
3ef2ca
  	  if test "X$rubyldflags" != "X"; then
3ef2ca
! 	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
3ef2ca
  	      LDFLAGS="$rubyldflags $LDFLAGS"
3ef2ca
  	    fi
3ef2ca
  	  fi
3ef2ca
*** ../vim-7.4.223/src/version.c	2014-03-27 17:40:53.396696361 +0100
3ef2ca
--- src/version.c	2014-03-27 18:48:59.488758971 +0100
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     224,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Female engineers become irresistible at the age of consent and remain that
3ef2ca
way until about thirty minutes after their clinical death.  Longer if it's a
3ef2ca
warm day.
3ef2ca
				(Scott Adams - The Dilbert principle)
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    ///