* config.guess.long: detect SuSE Enterprise Server and call it
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 5 May 2005 20:01:35 +0000 (20:01 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Thu, 5 May 2005 20:01:35 +0000 (20:01 +0000)
"sles" not "suse".

ChangeLog
config.guess.long

index c106e258c202adfeb760f3e9d09acda51acf6e25..278386755ee6326e2167d4529755552d2eaca6e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-05  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * config.guess.long: detect SuSE Enterprise Server and call it
+       "sles" not "suse".
+
 2005-05-02  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * doc/am-utils.texi (amd): document proper use of
index 4afc6144289497fcc9a1d4931821f4170156df5f..7889e48e513736b27d97373955cf895ebe7ca884 100755 (executable)
@@ -6,7 +6,7 @@
 #set -x
 
 # find a single word that prints the version number of the release
-getdistrover () {
+getver () {
     l=`head $1`
     set $l
     for i in $*
@@ -26,12 +26,11 @@ if test "x$GCONFIG" = "x" ; then
     export PATH
     GCONFIG=`config.guess || echo unknown-config`
 fi
-
 case "${GCONFIG}" in
     *linux* )
        GCONFIG=`echo ${GCONFIG} | sed -e 's/i.86/i386/' -e 's/linux-gnu/linux/'`
        if test -f /etc/redhat-release ; then
-           long=`getdistrover /etc/redhat-release`
+           long=`getver /etc/redhat-release`
            if grep -q 'Red Hat Enterprise Linux' /etc/redhat-release; then
                echo ${GCONFIG}-rhel${long}
            elif grep -q 'Fedora Core' /etc/redhat-release; then
@@ -41,11 +40,15 @@ case "${GCONFIG}" in
            fi
            exit 0
        elif test -f /etc/SuSE-release ; then
-           long=`getdistrover /etc/SuSE-release`
-           echo ${GCONFIG}-suse${long}
+           long=`getver /etc/SuSE-release`
+           if grep -q 'Enterprise Server' /etc/SuSE-release; then
+               echo ${GCONFIG}-sles${long}
+           else
+               echo ${GCONFIG}-suse${long}
+           fi
            exit 0
        elif test -f /etc/debian_version ; then
-           long=`getdistrover /etc/debian_version`
+           long=`getver /etc/debian_version`
            echo ${GCONFIG}-deb${long}
            exit 0
        else