On Wed, Feb 26, 2014 at 04:34:15AM +0100, Bram Moolenaar wrote:
>
> Danek Duvall wrote:
>
> > Now that I'm building Perl and Ruby support, I'm running into the fact that
> > /usr/bin/grep on Solaris doesn't support -F. Telling configure to find a
> > version of grep that supports it, and using $FGREP takes care of the
> > problem.
> >
> > This is a patch to configure.in; when I regenerate auto/configure, the diff
> > is huge since I'm not using autoconf 2.65, so I'm not including that
> > portion.
>
> Thanks. However, the indenting messes up the patch, can you attach it
> instead?
Done.
Thanks,
Danek
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--- src/configure.in.orig Tue Feb 25 13:09:51 2014
+++ src/configure.in Tue Feb 25 13:11:03 2014
@@ -14,6 +14,7 @@
AC_PROG_CC dnl required by almost everything
AC_PROG_CPP dnl required by header file checks
AC_PROGRAM_EGREP dnl required by AC_EGREP_CPP
+AC_PROG_FGREP dnl finds working grep -F
AC_ISC_POSIX dnl required by AC_C_CROSS
AC_PROG_AWK dnl required for "make html" in ../doc
@@ -936,7 +937,7 @@
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^
]]*//'`
fi
if test "X$perlldflags" != "X"; then
- if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X";
then
+ if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X";
then
LDFLAGS="$perlldflags $LDFLAGS"
fi
fi
@@ -1727,7 +1728,7 @@
dnl configure, so strip these flags first (if present)
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e
's/-arch\ i386//' -e 's/-arch\ x86_64//'`
if test "X$rubyldflags" != "X"; then
- if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X";
then
+ if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X";
then
LDFLAGS="$rubyldflags $LDFLAGS"
fi
fi