[MPlayer-dev-eng] [PATCH] -pipe gcc option detection
Gabucino
gabucino at mplayerhq.hu
Tue Aug 24 15:19:38 CEST 2004
The attached configure patch detects if the installed assembler supports
receiving data from pipe.
Also enables searching for X11 libs in /usr/lib too (for example Digital Unix).
--
Bérczi Gábor
/Gabucino/
-------------- next part --------------
diff -Naur main/configure main.osf1/configure
--- main/configure Sun Aug 15 10:12:42 2004
+++ main.osf1/configure Tue Aug 24 13:42:46 2004
@@ -1148,6 +1153,11 @@
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"
@@ -3150,7 +3173,7 @@
echocheck "X11 libs presence"
if test -z "$_ld_x11" ; then
- for I in /usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 ; do
+ for I in /usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 /usr/lib ; do
if test -d "$I" && ( test -f "$I/libX11.so" || test -f "$I/libX11.a" || test -f "$I/libX11.dll.a" ) ; then
_ld_x11="-L$I"
echores "yes (using $I)"
@@ -4917,7 +4940,7 @@
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)"
@@ -5925,7 +5948,7 @@
_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
@@ -6115,7 +6138,7 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040824/ae335068/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list