summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-07-02 14:41:54 -0700
committerBrian Behlendorf <[email protected]>2010-07-02 14:48:27 -0700
commitd466208f1e76c80fe14751739273b1932c4329f3 (patch)
tree03af7a2fd95fd0865a3beb1e1998ebf3f45bfe8b
parentdbe561d8ab3c4787e8d7f1233e6013d9c79bfbcd (diff)
Update config.guess to recognize additional distros
The following distros were added: redhat, fedora, debian, ubuntu, sles, slackware, and gentoo.
-rwxr-xr-xconfig/config.guess13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/config.guess b/config/config.guess
index 2fc3acce2..2440a1546 100755
--- a/config/config.guess
+++ b/config/config.guess
@@ -136,9 +136,20 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-## for Red Hat Linux
if test -f /etc/redhat-release ; then
VENDOR=redhat ;
+elif test -f /etc/fedora-release ; then
+ VENDOR=fedora ;
+elif test -f /etc/debian_version ; then
+ VENDOR=debian ;
+elif test -f /etc/lsb-release ; then
+ VENDOR=ubuntu ;
+elif test -f /etc/SuSE-release ; then
+ VENDOR=sles ;
+elif test -f /etc/slackware-version ; then
+ VENDOR=slackware ;
+elif test -f /etc/gentoo-release ; then
+ VENDOR=gentoo ;
else
VENDOR= ;
fi