Blame SOURCES/7.4.224

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