summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlexey Shvetsov <[email protected]>2011-05-14 18:25:37 +0400
committerBrian Behlendorf <[email protected]>2011-05-14 08:54:48 -0700
commitd9bfe0f57a82fd1a02e93309912008ed1aa83e04 (patch)
treecd1970a61b6b6882f776bc53cd867852969b22ef /config
parente814770f2ed14808c7ea8cf8cea034aacb20564a (diff)
Fix distribution detection for gentoo
Also this may fix other distros because some of them also provide /etc/lsb-release not only ubuntu. Closes #244
Diffstat (limited to 'config')
-rw-r--r--config/zfs-build.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index d281b4dcf..773a9448c 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -178,16 +178,16 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
VENDOR=redhat ;
elif test -f /etc/fedora-release ; then
VENDOR=fedora ;
- elif test -f /etc/lsb-release ; then
- VENDOR=ubuntu ;
+ elif test -f /etc/gentoo-release ; then
+ VENDOR=gentoo ;
elif test -f /etc/debian_version ; then
VENDOR=debian ;
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 ;
+ elif test -f /etc/lsb-release ; then
+ VENDOR=ubuntu ;
elif test -f /etc/lunar.release ; then
VENDOR=lunar ;
else