]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't use GNU-sed-specific \< \> operators here, either.
authorJim Meyering <meyering@redhat.com>
Mon, 5 Nov 2007 11:03:08 +0000 (12:03 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 5 Nov 2007 11:08:27 +0000 (12:08 +0100)
* m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below.

ChangeLog
m4/include-exclude-prog.m4

index 61ee8c3b9032cdb3bfd4cc2d7087a626926cf584..e9e2892e99755f4814ab6bdcf6bc7c6e7af59d4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-11-05  Jim Meyering  <meyering@redhat.com>
 
+       Don't use GNU-sed-specific \< \> operators here, either.
+       * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below.
+
        Use tighter regexps when performing name substitution.
        * man/Makefile.am (mapped_name): Add ^ and $$ anchors.
 
index e5612c69fd37681a3e75000211cff1900050350a..d0addc7760f3878837d3addbc4c070dd7b2ebd37 100644 (file)
@@ -19,7 +19,8 @@ AC_DEFUN([gl_ADD_PROG],
 # Usage: gl_REMOVE_PROG([prog_list_var_name], [prog_name])
 AC_DEFUN([gl_REMOVE_PROG],
 [{
-  $1=`echo "$$1"|sed 's/\<'"$2"'\>//;s/  */ /g;s/^  *//;s/  *$//'`
+  $1=`for gl_rem_i in $$1; do
+        test "$gl_rem_i" = "$2" || echo "$gl_rem_i" done | tr '\012' ' '; echo`
 }])
 
 # Given the name of a variable containing a space-separated list of