From 4a5444db0e6311a7965040a87ff3b21d10477844 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 18 Feb 2007 01:39:07 +0000 Subject: [PATCH] case insensitive OS name Originally committed as revision 8018 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/configure b/configure index 7f7210b..9cb950b 100755 --- a/configure +++ b/configure @@ -213,6 +213,10 @@ toupper(){ echo "$@" | tr '[a-z]' '[A-Z]' } +tolower(){ + echo "$@" | tr '[A-Z]' '[a-z]' +} + set_all(){ value=$1 shift @@ -943,8 +947,8 @@ esac # OS specific osextralibs="-lm" -case $targetos in - BeOS|Haiku|Zeta) +case `tolower $targetos` in + beos|haiku|zeta) PREFIX="$HOME/config" # helps building libavcodec add_cflags "-DPIC -fomit-frame-pointer" @@ -973,18 +977,18 @@ case $targetos in beos_netserver="yes" osextralibs="-lnet" fi ;; - SunOS) + sunos) dv1394="no" FFLDFLAGS="" FFSERVERLDFLAGS="" SHFLAGS="-shared -Wl,-h,\$@" add_extralibs "-lsocket -lnsl" ;; - NetBSD) + netbsd) dv1394="no" add_extralibs "-lossaudio" ;; - OpenBSD) + openbsd) dv1394="no" need_memalign="no" LIBOBJFLAGS="\$(PIC)" @@ -995,21 +999,21 @@ case $targetos in SLIBNAME_WITH_MAJOR='$(SLIBNAME)' add_extralibs "-lossaudio" ;; - FreeBSD) + freebsd) dv1394="no" need_memalign="no" add_cflags "-pthread" ;; - GNU/kFreeBSD) + gnu/kfreebsd) dv1394="no" add_cflags "-pthread" ;; - BSD/OS) + bsd/os) dv1394="no" osextralibs="-lpoll -lgnugetopt -lm" strip="strip -d" ;; - Darwin) + darwin) cc="cc" dv1394="no" need_memalign="no" @@ -1023,7 +1027,7 @@ case $targetos in SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)' FFSERVERLDFLAGS=-Wl,-bind_at_load ;; - MINGW32*) + mingw32*) mingw32="yes" if enabled_all shared static; then cat <