[svn] / branches / release-1_2-branch / xvidcore / build / generic / configure.in Repository:
ViewVC logotype

Diff of /branches/release-1_2-branch/xvidcore/build/generic/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1609, Mon Apr 4 23:49:37 2005 UTC revision 1615, Tue May 17 15:55:24 2005 UTC
# Line 562  Line 562 
562  fi  fi
563    
564  dnl ==========================================================================  dnl ==========================================================================
565    dnl Some gcc flags can't be used for gcc >= 3.4.0
566    dnl ==========================================================================
567    
568    if test "$GCC" = "yes" ; then
569    cat << EOF > test.c
570    #include <stdio.h>
571    int main(int argc, char **argv)
572    {
573            if (*argv[[1]] == 'M') {
574                    printf("%d", __GNUC__);
575            }
576            if (*argv[[1]] == 'm') {
577                    printf("%d", __GNUC_MINOR__);
578            }
579            return 0;
580    }
581    EOF
582            $CC -o gcc-ver test.c
583    
584            GCC_MAJOR=`./gcc-ver M`
585            GCC_MINOR=`./gcc-ver m`
586    
587            rm -f test.c
588            rm -f gcc-ver
589    
590            # GCC 4.x
591            if test $GCC_MAJOR -gt 3 ; then
592                    CFLAGS=`echo $CFLAGS | sed s,"-mcpu","-mtune",g`
593                    CFLAGS=`echo $CFLAGS | sed s,'-freduce-all-givs','',g`
594                    CFLAGS=`echo $CFLAGS | sed s,'-fmove-all-movables','',g`
595                    CFLAGS=`echo $CFLAGS | sed s,'-fnew-ra','',g`
596                    CFLAGS=`echo $CFLAGS | sed s,'-fwritable-strings','',g`
597            fi
598    
599            # GCC 3.4.x
600            if test $GCC_MAJOR -eq 3 && $GCC_MINOR -gt 3 ; then
601                    CFLAGS=`echo $CFLAGS | sed s,"-mcpu","-mtune",g`
602            fi
603    fi
604    
605    
606    dnl ==========================================================================
607  dnl  dnl
608  dnl Substitions  dnl Substitions
609  dnl  dnl

Legend:
Removed from v.1609  
changed lines
  Added in v.1615

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4