build: Use portable sed constructs.
authorLudovic Courtès <ludo@gnu.org>
Mon, 25 Mar 2013 21:27:37 +0000 (22:27 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 25 Mar 2013 21:27:37 +0000 (22:27 +0100)
Partly fixes <http://bugs.gnu.org/14042>.
Reported by Marc Girod <marc.girod@gmail.com>.

* meta/Makefile.am (guile-config): Use separate "s" expressions to
  accommodate Solaris sed.

meta/Makefile.am

index bd20784..5a96e0e 100644 (file)
@@ -2,7 +2,7 @@
 ## Jim Blandy <jimb@red-bean.com> --- September 1997
 ##
 ##     Copyright (C) 1998, 1999, 2001, 2006, 2007, 2008, 2009, 2011,
-##        2012 Free Software Foundation, Inc.
+##        2012, 2013 Free Software Foundation, Inc.
 ##
 ##   This file is part of GUILE.
 ##   
@@ -46,10 +46,10 @@ aclocal_DATA = guile.m4
 
 guile-config: $(srcdir)/guile-config.in $(top_builddir)/config.status
        guile="@bindir@/`echo guile | $(SED) -e '$(program_transform_name)'`" ; \
-       cat $(srcdir)/guile-config.in                                                   \
-       | $(SED) -e "s,@pkgconfigdir@,$(pkgconfigdir),g ;                       \
-                    s,@""PKG_CONFIG@,$(PKG_CONFIG),g ;                         \
-                    s,@installed_guile@,$$guile,g"                             \
+       cat $(srcdir)/guile-config.in                                           \
+       | $(SED) -e "s,@pkgconfigdir@,$(pkgconfigdir),g                       \
+                -e "s,@""PKG_CONFIG@,$(PKG_CONFIG),g"                          \
+                -e "s,@installed_guile@,$$guile,g"                             \
        > guile-config.out
        mv guile-config.out guile-config
        chmod +x guile-config