0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

profile support & CFLAGS improvements

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@718 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nickols_k 2001-05-07 07:52:50 +00:00
parent 8ddcc671cf
commit 314ca124e9

17
configure vendored
View File

@ -76,7 +76,8 @@ usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
--enable-debug[=1-3] compile debugging information into mplayer
--enable-debug[=1-3] compile debugging information into mplayer [disable]
--enable-profile compile profiling information into mplayer [disable]
--enable-mmx build with mmx support [autodetect]
--enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
--enable-3dnow build with 3dnow! support [autodetect]
@ -507,6 +508,9 @@ rm -f $TMPC $TMPO
for ac_option
do
case "$ac_option" in
--enable-profile)
_profile='-p'
;;
--enable-debug)
_debug='-g'
;;
@ -806,10 +810,13 @@ if [ $_png = yes ]; then
fi
# Checking for CFLAGS
if [ "$CFLAGS" = "" ]; then
CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math"
if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile"
else
if test -z "$CFLAGS"; then
CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
fi
fi
echo
echo "Creating $MCONF"
cat > $MCONF << EOF
@ -819,7 +826,7 @@ cat > $MCONF << EOF
AR=ar
CC=$_cc
X11DIR=$_x11libdir
# OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
# OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
OPTFLAGS=$CFLAGS
# LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng