]> git.alsa-project.org Git - alsa-utils.git/commitdiff
fix use of $(SED)
authorMichał Górny <mgorny@gentoo.org>
Wed, 31 Aug 2011 20:27:10 +0000 (22:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 Sep 2012 13:53:24 +0000 (15:53 +0200)
The alsactl Makefile used 'sed $(SED)' which is going to failed when SED
is actually set. Replaced that with '$(SED)', and a few 'sed' calls in
alsaconf Makefile as well. Added AC_PROG_SED to configure to have it
set.

Fixes: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5363
Fixes: http://bugs.gentoo.org/show_bug.cgi?id=366587
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsaconf/Makefile.am
configure.in

index a11ecc57f9c4df15517b897905ee4c798a08a62f..a4f5e4a8273d7ee5be3bfa28486243d704d0e103 100644 (file)
@@ -5,13 +5,13 @@ SUBDIRS = po
 
 install-man8:
        @for i in $(man_MANS); do \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         inst=`echo $$i | sed -e 's/\\.[^.]*$$//'`; \
+         ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
+         inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
          case $$inst in \
          *.[a-za-z]*)\
-           loc=`echo $$inst | sed -e 's/^.*\\.//'`; \
+           loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
            loc="/$$loc"; \
-           inst=`echo $$inst | sed -e 's/\\.[^.]*$$//'`;; \
+           inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
          *)\
            loc="";; \
          esac; \
@@ -22,13 +22,13 @@ install-man8:
 
 uninstall-man8:
        @for i in $(man_MANS); do \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         inst=`echo $$i | sed -e 's/\\.[^.]*$$//'`; \
+         ext=`echo $$i | $(SED) -e 's/^.*\\.//'`; \
+         inst=`echo $$i | $(SED) -e 's/\\.[^.]*$$//'`; \
          case $$inst in \
          *.[a-za-z]*)\
-           loc=`echo $$inst | sed -e 's/^.*\\.//'`; \
+           loc=`echo $$inst | $(SED) -e 's/^.*\\.//'`; \
            loc="/$$loc"; \
-           inst=`echo $$inst | sed -e 's/\\.[^.]*$$//'`;; \
+           inst=`echo $$inst | $(SED) -e 's/\\.[^.]*$$//'`;; \
          *)\
            loc="";; \
          esac; \
index d51f6fa50e8d7c8f598b0a5d3ae5bd65b778c0bd..2b9d10d12e668d8587d973f4491150b847a75df8 100644 (file)
@@ -27,6 +27,7 @@ AC_PROG_CC
 dnl AC_PROG_CXX
 AC_PROG_INSTALL
 AC_PROG_LN_S
+AC_PROG_SED
 AM_PATH_ALSA(1.0.16)
 
 dnl Check components