Mercurial > mplayer.hg
changeset 29142:5a42bf9bcd84
Simplify OS detection functions.
The return statement in the functions appears unnecessary; remove it.
author | diego |
---|---|
date | Wed, 15 Apr 2009 17:08:41 +0000 |
parents | b0d5adf371fe |
children | 499cda761744 |
files | configure |
diffstat | 1 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Apr 15 08:38:39 2009 +0000 +++ b/configure Wed Apr 15 17:08:41 2009 +0000 @@ -110,26 +110,26 @@ issystem() { test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`" } -linux() { issystem "Linux" || issystem "uClinux" ; return "$?" ; } -sunos() { issystem "SunOS" ; return "$?" ; } -hpux() { issystem "HP-UX" ; return "$?" ; } -irix() { issystem "IRIX" ; return "$?" ; } -aix() { issystem "AIX" ; return "$?" ; } -cygwin() { issystem "CYGWIN" ; return "$?" ; } -freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; } -netbsd() { issystem "NetBSD" ; return "$?" ; } -bsdos() { issystem "BSD/OS" ; return "$?" ; } -openbsd() { issystem "OpenBSD" ; return "$?" ; } -dragonfly() { issystem "DragonFly" ; return "$?" ; } -qnx() { issystem "QNX" ; return "$?" ; } -darwin() { issystem "Darwin" ; return "$?" ; } -gnu() { issystem "GNU" ; return "$?" ; } -mingw32() { issystem "MINGW32" ; return "$?" ; } -morphos() { issystem "MorphOS" ; return "$?" ; } -amigaos() { issystem "AmigaOS" ; return "$?" ; } -win32() { cygwin || mingw32 ; return "$?" ; } -beos() { issystem "BEOS" ; return "$?" ; } -os2() { issystem "OS/2" ; return "$?" ; } +aix() { issystem "AIX"; } +amigaos() { issystem "AmigaOS"; } +beos() { issystem "BEOS"; } +bsdos() { issystem "BSD/OS"; } +cygwin() { issystem "CYGWIN"; } +darwin() { issystem "Darwin"; } +dragonfly() { issystem "DragonFly"; } +freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; } +gnu() { issystem "GNU"; } +hpux() { issystem "HP-UX"; } +irix() { issystem "IRIX"; } +linux() { issystem "Linux"; } +mingw32() { issystem "MINGW32"; } +morphos() { issystem "MorphOS"; } +netbsd() { issystem "NetBSD"; } +openbsd() { issystem "OpenBSD"; } +os2() { issystem "OS/2"; } +qnx() { issystem "QNX"; } +sunos() { issystem "SunOS"; } +win32() { cygwin || mingw32; } # arch test boolean functions # x86/x86pc is used by QNX