]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtoolize: remove NL2SP and initialisation.
authorGary V. Vaughan <gary@gnu.org>
Mon, 14 Nov 2011 10:37:39 +0000 (17:37 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 15 Nov 2011 08:34:44 +0000 (15:34 +0700)
There's only a single use of NL2SP, and that is redundant.
* libtoolize.m4sh (func_serial_update): Factor away use of
NL2SP.
(NL2SP, SP2NL): Remove initialisation.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
libtoolize.m4sh

index c920248b869447ef4527ff78bfeeebc87c779135..53494dd3fa13f65f450ac0a1fe12f74657d8ee69 100644 (file)
@@ -657,7 +657,7 @@ func_serial_update ()
     # it has `m4_include([DESTFILE])', so the copy effectively already
     # updated `aclocal.m4'.
     my_included_files=`func_included_files aclocal.m4`
-    case `echo " $my_included_files " | $NL2SP` in
+    case `echo " "$my_included_files" "` in
 
       # Skip included files:
       *" $my_destfile "*) ;;
@@ -1648,19 +1648,6 @@ func_require_seen_libtool ()
   pkgltdldir=@pkgdatadir@
   aclocaldir=@aclocaldir@
 
-  # test EBCDIC or ASCII
-  case `echo X|tr X '\101'` in
-   A) # ASCII based system
-      # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
-    SP2NL='tr \040 \012'
-    NL2SP='tr \015\012 \040\040'
-    ;;
-   *) # EBCDIC based system
-    SP2NL='tr \100 \n'
-    NL2SP='tr \r\n \100\100'
-    ;;
-  esac
-
   # Allow the user to override the master libtoolize repository:
   if test -n "$_lt_pkgdatadir"; then
     pkgltdldir="$_lt_pkgdatadir/libltdl"