libtoolize: remove NL2SP and initialisation.

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>
This commit is contained in:
Gary V. Vaughan 2011-11-14 17:37:39 +07:00
parent e8db92c345
commit afe644207a

View 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"