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