1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

build: Use portable sed constructs.

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.
This commit is contained in:
Ludovic Courtès 2013-03-25 22:27:37 +01:00
parent 11ed42771d
commit 570fdeceac

View 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