summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-25 15:40:06 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-25 15:40:06 +0000
commit47efdc026d0935c95718944ffd7f7d4aa93eebad (patch)
tree91b2d9d98a4ae67d6cb0cf981680fb89cc3f013d /configure
parent7a5eb4561c91e22e139f01a5fc4dd58866d1bda9 (diff)
downloadmpv-47efdc026d0935c95718944ffd7f7d4aa93eebad.tar.bz2
mpv-47efdc026d0935c95718944ffd7f7d4aa93eebad.tar.xz
Detect if the assembler supports receiving data through -pipe,
patch by Gabucino. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13138 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 8fd1af81e8..c3aef1fa5f 100755
--- a/configure
+++ b/configure
@@ -1200,6 +1200,11 @@ EOF
fi
+echocheck "assembler support of -pipe option"
+cat > $TMPC << EOF
+int main(void) { return 0; }
+EOF
+cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no"
_prefix="/usr/local"
_xvmclib="XvMCNVIDIA"
@@ -4946,7 +4951,7 @@ if test "$_faad_internal" = auto ; then
fi
# internal faad: check if our dear gcc is able to compile it...
cp "`pwd`/libfaad2/cfft.c" $TMPC
- if ( cc_check -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then
+ if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then
_faad_internal=yes
else
_faad_internal="no (broken gcc)"
@@ -5964,7 +5969,7 @@ if test "$_profile" != "" || test "$_debug" != "" ; then
_stripbinaries=no
elif test -z "$CFLAGS" ; then
if test "$host_arch" != "mips" ; then
- CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
+ CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
else
CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
fi
@@ -6154,7 +6159,7 @@ CC = $_cc
AWK = $_awk
RANLIB = $_ranlib
INSTALL = $_install
-# OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math
+# OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math
EXTRA_INC = $_inc_extra $_inc_gtk
OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC)
STRIPBINARIES = $_stripbinaries