[Mplayer-cvslog] CVS: main configure,1.672,1.673

Atmosfear atmos4 at mplayerhq.hu
Mon Feb 24 00:44:20 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv3087

Modified Files:
	configure 
Log Message:
Adding gcc major, minor, mini vars, adding unused var suppression for gcc 3 series


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.672
retrieving revision 1.673
diff -u -r1.672 -r1.673
--- configure	23 Feb 2003 20:31:43 -0000	1.672
+++ configure	23 Feb 2003 23:44:16 -0000	1.673
@@ -463,6 +463,9 @@
       cc_verc_fail=yes
       ;;
     2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9])
+      _cc_major=`echo $cc_version | cut -d '.' -f 1`
+      _cc_minor=`echo $cc_version | cut -d '.' -f 2`
+      _cc_mini=`echo $cc_version | cut -d '.' -f 3`
       cc_version="$cc_version, ok"
       cc_verc_fail=no
       ;;
@@ -4743,6 +4746,9 @@
 _stripbinaries=yes
 if test "$_profile" != "" || test "$_debug" != "" ; then
   CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
+  if test "$_cc_major" -ge "3" ; then
+    CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'`
+  fi
   _stripbinaries=no
 elif test -z "$CFLAGS" ; then
   if test "$host_arch" != "mips" ; then



More information about the MPlayer-cvslog mailing list