X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Fltmain.sh;h=1e0c779c34c894d043ef8b0536db0d2324f574f0;hb=fe569dbb7517dbb8bf1905c4f87732197114c4cf;hp=1e17bc117efb646ab032ac55635ebbb5d8ce15e1;hpb=28a22d67856fc0cb4dafea2d9bc038411c363647;p=openldap diff --git a/build/ltmain.sh b/build/ltmain.sh index 1e17bc117e..1e0c779c34 100755 --- a/build/ltmain.sh +++ b/build/ltmain.sh @@ -74,8 +74,17 @@ rm="rm -f" # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' -SP2NL='tr \040 \012' -NL2SP='tr \015\012 \040\040' +# test EBCDIC or ASCII +case `echo '' | od -x` in +*15*) # EBCDIC based system + SP2NL='tr \100 \025' + NL2SP='tr \025 \100' + ;; +*) # Assume ASCII based system + SP2NL='tr \040 \012' + NL2SP='tr \015\012 \040\040' + ;; +esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set.