]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (irix, nonstopux): Set major before use.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Thu, 13 Jun 2002 11:01:47 +0000 (11:01 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 13 Jun 2002 11:01:47 +0000 (11:01 +0000)
ChangeLog
ltmain.in

index 1ce63620d8dd444aaa0c869fde5ab20bb1dc5479..3c73a18d284b36241bd3c682e20d1c08b33da34e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * ltmain.in (irix, nonstopux): Set major before use.
+
 2002-06-11  Daniel Kobras  <kobras@linux.de>
 
        * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user
index 90ce3789b93efa6ec495ae747d5592c046204706..4b05385bf68316b03357b4158bba8a76ffab38c8 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -69,17 +69,17 @@ rm="rm -f"
 # metacharacters that are still active within double-quoted strings.
 Xsed="${SED}"' -e 1s/^X//'
 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
-# test EBCDIC or ASCII                                                         
-case `echo A|od -x` in                                                         
- *[Cc]1*) # EBCDIC based system                                                
-  SP2NL="tr '\100' '\n'"                                                       
-  NL2SP="tr '\r\n' '\100\100'"                                                 
-  ;;                                                                           
- *) # Assume ASCII based system                                                
-  SP2NL="tr '\040' '\012'"                                                     
-  NL2SP="tr '\015\012' '\040\040'"                                             
-  ;;                                                                           
-esac                                                                           
+# test EBCDIC or ASCII
+case `echo A|od -x` in
+ *[Cc]1*) # EBCDIC based system
+  SP2NL="tr '\100' '\n'"
+  NL2SP="tr '\r\n' '\100\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.
@@ -2658,14 +2658,14 @@ EOF
          ;;
 
        irix | nonstopux)
+         major=`expr $current - $age + 1`
+
          case $version_type in
            nonstopux) verstring_prefix=nonstopux ;;
            *)         verstring_prefix=sgi ;;
          esac
          verstring="$verstring_prefix$major.$revision"
 
-         major=`expr $current - $age + 1`
-
          # Add in all the interfaces that we are compatible with.
          loop=$revision
          while test "$loop" -ne 0; do