[Ffmpeg-cvslog] r5833 - trunk/configure

diego subversion
Fri Jul 28 02:48:11 CEST 2006


Author: diego
Date: Fri Jul 28 02:48:11 2006
New Revision: 5833

Modified:
   trunk/configure

Log:
Remove redundant TARGET_OS setting.


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Fri Jul 28 02:48:11 2006
@@ -582,6 +582,7 @@
 mingw32="yes"
 ;;
 CYGWIN*)
+targetos=CYGWIN
 shlibdir='${PREFIX}/bin'
 v4l="no"
 v4l2="no"
@@ -599,6 +600,7 @@
 Linux)
 ;;
 IRIX*)
+targetos=IRIX
 ranlib="echo ignoring ranlib"
 v4l="no"
 v4l2="no"
@@ -630,30 +632,11 @@
 os2="yes"
 
 ;;
-*) ;;
+*)
+targetos="${targetos}-UNKNOWN"
+;;
 esac
 
-# From MPlayer configure. We need TARGET_OS available
-# to the Makefile, so it can distinguish between flavors
-# of AltiVec on PowerPC.
-TARGET_OS=`( uname -s ) 2>&1`
-  case "$TARGET_OS" in
-  Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS)
-    ;;
-  IRIX*)
-    TARGET_OS=IRIX
-    ;;
-  HP-UX*)
-    TARGET_OS=HP-UX
-    ;;
-  [cC][yY][gG][wW][iI][nN]*)
-    TARGET_OS=CYGWIN
-    ;;
-  *)
-    TARGET_OS="$TARGET_OS-UNKNOWN"
-    ;;
-  esac
-
 # find source path
 source_path="`dirname $0`"
 source_path_used="yes"
@@ -1604,7 +1587,7 @@
 echo "SLIBPREF=$SLIBPREF" >> config.mak
 echo "SLIBSUF=\${BUILDSUF}$SLIBSUF" >> config.mak
 echo "EXESUF=\${BUILDSUF}$EXESUF" >> config.mak
-echo "TARGET_OS=$TARGET_OS" >> config.mak
+echo "TARGET_OS=$targetos" >> config.mak
 if test "$cpu" = "x86" ; then
   echo "TARGET_ARCH_X86=yes" >> config.mak
   echo "#define ARCH_X86 1" >> $TMPH
@@ -1949,17 +1932,17 @@
   echo "#define HAVE_THREADS 1" >> $TMPH
 fi
 
-if test "$TARGET_OS" = "SunOS" ; then
+if test "$targetos" = "SunOS" ; then
   echo "#define CONFIG_SUNOS 1" >> $TMPH
 fi
 
-if test "$TARGET_OS" = "BeOS" ; then
+if test "$targetos" = "BeOS" ; then
   echo "HAVE_BEOSTHREADS=yes" >> config.mak
   echo "#define HAVE_BEOSTHREADS 1" >> $TMPH
   echo "#define HAVE_THREADS 1" >> $TMPH
 fi
 
-if test "$TARGET_OS" = "Darwin"; then
+if test "$targetos" = "Darwin"; then
   echo "#define CONFIG_DARWIN 1"  >> $TMPH
   echo "CONFIG_DARWIN=yes" >> config.mak
 fi




More information about the ffmpeg-cvslog mailing list