Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Florin Iucha
On Sun, Nov 14, 2010 at 05:31:25PM +0100, Paolo Bonzini wrote: > Florin, can you try building GNU sed and see if it has a similar problem? The released (4.2) version? [flo...@icarus sed-4.2]$ ./configure --prefix=/usr/local checking for a BSD-compatible install... build-aux/install-sh -c checking

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Ralf Wildenhues
* Paolo Bonzini wrote on Sun, Nov 14, 2010 at 08:09:12PM CET: > On 11/14/2010 06:48 PM, Florin Iucha wrote: > >checking build system type... i386-pc-solaris2.10 > >checking host system type... i386-pc-solaris2.10 > >checking how to run the C preprocessor... cc -E > >checking for grep that handles l

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Paolo Bonzini
On 11/14/2010 06:48 PM, Florin Iucha wrote: checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found i

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Paolo Bonzini
On 11/14/2010 05:25 PM, Bruno Haible wrote: Paolo Bonzini wrote: +# Override grep during configure. +fn_grep () { I would suggest more comments. - What is the purpose of this override? - What are its limitations? 10 years from now, no one will remember. True, but there is "git blame/gi

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Bruno Haible
Paolo Bonzini wrote: > +# Override grep during configure. > +fn_grep () { I would suggest more comments. - What is the purpose of this override? - What are its limitations? 10 years from now, no one will remember. Suggestion: # Set the GREP and EGREP variables to a dummy replacement for the

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Jim Meyering
Paolo Bonzini wrote: > On 11/14/2010 03:09 PM, Jim Meyering wrote: >>> It is possible to disable the body of these two expansions by >>> assigning values to GREP and EGREP inside the configure script. >> >> But with no grep program already installed, that will always fail. > > You can implement a b

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Paolo Bonzini
On 11/14/2010 03:09 PM, Jim Meyering wrote: >> It is possible to disable the body of these two expansions by >> assigning values to GREP and EGREP inside the configure script. > > But with no grep program already installed, that will always fail. You can implement a basic grep that is "good enoug

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Jim Meyering
Bruno Haible wrote: > Jim Meyering wrote: >> While the dependency of AC_EGREP_CPP on AC_PROG_EGREP >> is unavoidable, there are others that are indeed unnecessary, >> since they serve only to work around a bug in autoconf-2.57, >> which is no longer relevant, since we (gnulib-tool) now >> requires

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Bruno Haible
Hi Jim, > The proposed patch is solely clean-up on the gnulib side. > As the subject implies, initially I thought this was the solution > to the grep-configure problem. As a pure clean-up patch, it is OK. But you confused me completely by proposing it under the subject "grep fails to build on Sol

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Bruno Haible
Jim Meyering wrote: > While the dependency of AC_EGREP_CPP on AC_PROG_EGREP > is unavoidable, there are others that are indeed unnecessary, > since they serve only to work around a bug in autoconf-2.57, > which is no longer relevant, since we (gnulib-tool) now > requires 2.59 or newer. > ... > Now

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Jim Meyering
Bruno Haible wrote: > Hi Jim, > >> - dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. >> - AC_REQUIRE([AC_PROG_CPP]) >> - AC_REQUIRE([AC_PROG_EGREP]) >> - >>AC_CACHE_CHECK([whether defines strtoimax as a macro], >> gl_cv_func_strtoimax_macro, >> [AC_EGREP_CPP([inttypes_h_de

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-14 Thread Bruno Haible
Hi Jim, > - dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. > - AC_REQUIRE([AC_PROG_CPP]) > - AC_REQUIRE([AC_PROG_EGREP]) > - >AC_CACHE_CHECK([whether defines strtoimax as a macro], > gl_cv_func_strtoimax_macro, > [AC_EGREP_CPP([inttypes_h_defines_strtoimax], [#include

Re: [bug #31646] grep fails to build on Solaris 10, because it lacks grep

2010-11-13 Thread Jim Meyering
Florin Iucha wrote: > URL: > > > Summary: grep fails to build on Solaris 10, because it lacks > grep > Project: grep > Submitted by: themage > Submitted on: Sat 13 Nov 2010 08:45:37 PM GMT >