Permalink
Browse files

Fix distribution detection so that Ubuntu does not identify as Debian

  • Loading branch information...
1 parent 6352774 commit b0065fd03d92a56ded237c128c206b907899c22e @ryao committed Feb 25, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 config/spl-build.m4
  2. +2 −2 configure
View
@@ -377,6 +377,8 @@ AC_DEFUN([SPL_AC_DEFAULT_PACKAGE], [
VENDOR=fedora ;
elif test -f /etc/gentoo-release ; then
VENDOR=gentoo ;
+ elif test -f /etc/lsb-release ; then
+ VENDOR=ubuntu ;
elif test -f /etc/debian_version ; then
VENDOR=debian ;
elif test -f /etc/SuSE-release ; then
@@ -385,8 +387,6 @@ AC_DEFUN([SPL_AC_DEFAULT_PACKAGE], [
VENDOR=slackware ;
elif test -f /etc/arch-release ; then
VENDOR=arch ;
- elif test -f /etc/lsb-release ; then
- VENDOR=ubuntu ;
elif test -f /etc/lunar.release ; then
VENDOR=lunar ;
else
View
@@ -11495,6 +11495,8 @@ $as_echo_n "checking linux distribution... " >&6; }
VENDOR=fedora ;
elif test -f /etc/gentoo-release ; then
VENDOR=gentoo ;
+ elif test -f /etc/lsb-release ; then
+ VENDOR=ubuntu ;
elif test -f /etc/debian_version ; then
VENDOR=debian ;
elif test -f /etc/SuSE-release ; then
@@ -11503,8 +11505,6 @@ $as_echo_n "checking linux distribution... " >&6; }
VENDOR=slackware ;
elif test -f /etc/arch-release ; then
VENDOR=arch ;
- elif test -f /etc/lsb-release ; then
- VENDOR=ubuntu ;
elif test -f /etc/lunar.release ; then
VENDOR=lunar ;
else

0 comments on commit b0065fd

Please sign in to comment.