
Hello Roberto,
On Sat, Sep 18, 2010 at 12:30 PM, Roberto Bagnara bagnara@cs.unipr.it wrote:
On 09/18/10 11:29, Peter Kruse wrote:
may I suggest that configure ends with in error if it can't find a GNU sed? Or search $PATH for a GNU sed and use that? I mean if it's possible to automate the process why not do it?
do you know a way to automate the process with Autoconf?
I haven't written a configure.ac yes, but there must be numerous examples out there. But looking at the manual I found you could for one use the macro AC_PROG_SED but that doesn't check for GNU sed, then there is a section on sed at http://www.gnu.org/software/autoconf/manual/autoconf.html#sed where it explains so limitations on the sed pattern you should use. Maybe it would be a better idea to use a sed pattern that does not fail with Solaris' sed. Or use perl.
Peter