Mercurial > mplayer.hg
comparison configure @ 13137:82719b83f295
Detect if the assembler supports receiving data through -pipe,
patch by Gabucino.
author | diego |
---|---|
date | Wed, 25 Aug 2004 15:40:06 +0000 |
parents | b230b668a96b |
children | 29a48ea224e8 |
comparison
equal
deleted
inserted
replaced
13136:b230b668a96b | 13137:82719b83f295 |
---|---|
1198 cc_check $_march $_gcc3_ext && _march="$_march $_gcc3_ext" | 1198 cc_check $_march $_gcc3_ext && _march="$_march $_gcc3_ext" |
1199 fi | 1199 fi |
1200 | 1200 |
1201 fi | 1201 fi |
1202 | 1202 |
1203 echocheck "assembler support of -pipe option" | |
1204 cat > $TMPC << EOF | |
1205 int main(void) { return 0; } | |
1206 EOF | |
1207 cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no" | |
1203 | 1208 |
1204 _prefix="/usr/local" | 1209 _prefix="/usr/local" |
1205 _xvmclib="XvMCNVIDIA" | 1210 _xvmclib="XvMCNVIDIA" |
1206 | 1211 |
1207 # GOTCHA: the variables below defines the default behavior for autodetection | 1212 # GOTCHA: the variables below defines the default behavior for autodetection |
4944 if not test -f "config.h" ; then | 4949 if not test -f "config.h" ; then |
4945 > config.h | 4950 > config.h |
4946 fi | 4951 fi |
4947 # internal faad: check if our dear gcc is able to compile it... | 4952 # internal faad: check if our dear gcc is able to compile it... |
4948 cp "`pwd`/libfaad2/cfft.c" $TMPC | 4953 cp "`pwd`/libfaad2/cfft.c" $TMPC |
4949 if ( cc_check -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then | 4954 if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then |
4950 _faad_internal=yes | 4955 _faad_internal=yes |
4951 else | 4956 else |
4952 _faad_internal="no (broken gcc)" | 4957 _faad_internal="no (broken gcc)" |
4953 fi | 4958 fi |
4954 fi | 4959 fi |
5962 CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'` | 5967 CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'` |
5963 fi | 5968 fi |
5964 _stripbinaries=no | 5969 _stripbinaries=no |
5965 elif test -z "$CFLAGS" ; then | 5970 elif test -z "$CFLAGS" ; then |
5966 if test "$host_arch" != "mips" ; then | 5971 if test "$host_arch" != "mips" ; then |
5967 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" | 5972 CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" |
5968 else | 5973 else |
5969 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" | 5974 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" |
5970 fi | 5975 fi |
5971 # always compile with '-g' if .developer: | 5976 # always compile with '-g' if .developer: |
5972 if test -f ".developer" ; then | 5977 if test -f ".developer" ; then |
6152 #AR = ar | 6157 #AR = ar |
6153 CC = $_cc | 6158 CC = $_cc |
6154 AWK = $_awk | 6159 AWK = $_awk |
6155 RANLIB = $_ranlib | 6160 RANLIB = $_ranlib |
6156 INSTALL = $_install | 6161 INSTALL = $_install |
6157 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math | 6162 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math |
6158 EXTRA_INC = $_inc_extra $_inc_gtk | 6163 EXTRA_INC = $_inc_extra $_inc_gtk |
6159 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) | 6164 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) |
6160 STRIPBINARIES = $_stripbinaries | 6165 STRIPBINARIES = $_stripbinaries |
6161 | 6166 |
6162 PRG = $_prg | 6167 PRG = $_prg |