summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-02-23 21:00:52 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-02-23 21:00:52 +0200
commit66f6f9f0768de5b003fc1b0fa9b1ea428466308a (patch)
tree157b98be78b0cd1e99b3dd51979bc97792d11642 /configure
parentebb541c6553af10203b2c2f5bcead6118a44f5be (diff)
parent30aa2383cadb2f879e02dca9df293c01119a3111 (diff)
downloadmpv-66f6f9f0768de5b003fc1b0fa9b1ea428466308a.tar.bz2
mpv-66f6f9f0768de5b003fc1b0fa9b1ea428466308a.tar.xz
Merge svn changes up to r28712
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure107
1 files changed, 57 insertions, 50 deletions
diff --git a/configure b/configure
index 161807bda3..bb8b514dd4 100755
--- a/configure
+++ b/configure
@@ -159,7 +159,7 @@ ppc() {
alpha() {
case "$host_arch" in
- alpha) return 0;;
+ alpha*) return 0;;
*) return 1;;
esac
}
@@ -2188,7 +2188,7 @@ EOF
;;
- alpha)
+ alpha*)
_arch='ALPHA'
_target_arch='ARCH_ALPHA = yes'
iproc='alpha'
@@ -2404,6 +2404,7 @@ elif test -z "$CFLAGS" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe"
else
CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
+ _ld_extra="$_ld_extra -ffast-math"
fi
else
_warn_CFLAGS=yes
@@ -7881,52 +7882,6 @@ fi
echores "$_maemo"
fi
-#this must be the last test to be performed or the ones following it will likely fail
-#because libdvdnavmini is intentionally not linked against libdvdread (to permit mplayer
-# to use its own copy of the library)
-echocheck "DVD support (libdvdnav)"
-if test "$_dvdread_internal" = yes && test ! -f "libdvdnav/dvdnav.c" ; then
- _dvdnav=no
-fi
-dvdnav_internal=no
-if test "$_dvdnav" = auto ; then
- if test "$_dvdread_internal" = yes ; then
- _dvdnav=yes
- dvdnav_internal=yes
- _res_comment="internal"
- else
- $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no
- fi
-fi
-if test "$_dvdnav" = auto ; then
- cat > $TMPC <<EOF
-#include <inttypes.h>
-#include <dvdnav/dvdnav.h>
-int main(void) { dvdnav_t *dvd=0; return 0; }
-EOF
- _dvdnav=no
- _dvdnavdir=`$_dvdnavconfig --cflags`
- _dvdnavlibs=`$_dvdnavconfig --libs`
- cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes
-fi
-if test "$_dvdnav" = yes ; then
- _largefiles=yes
- def_dvdnav='#define CONFIG_DVDNAV 1'
- if test "$dvdnav_internal" = yes ; then
- _inc_extra="$_inc_extra -Ilibdvdnav"
- _inputmodules="dvdnav(internal) $_inputmodules"
- else
- _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`"
- _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`"
- _inputmodules="dvdnav $_inputmodules"
- fi
-else
- def_dvdnav='#undef CONFIG_DVDNAV'
- _noinputmodules="dvdnav $_noinputmodules"
-fi
-echores "$_dvdnav"
-
-
#############################################################################
# On OS/2 nm supports only a.out. So the -Zomf compiler option to generate
@@ -7989,11 +7944,61 @@ else
CFLAGS="-D_ISOC99_SOURCE -D_BSD_SOURCE $CFLAGS"
fi
+cc_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
+
+# This must be the last test to be performed. Any other tests following it
+# could fail due to linker errors. libdvdnavmini is intentionally not linked
+# against libdvdread (to permit MPlayer to use its own copy of the library).
+# So any compilation using the flags added here but not linking against
+# libdvdread can fail.
+echocheck "DVD support (libdvdnav)"
+if test "$_dvdread_internal" = yes && test ! -f "libdvdnav/dvdnav.c" ; then
+ _dvdnav=no
+fi
+dvdnav_internal=no
+if test "$_dvdnav" = auto ; then
+ if test "$_dvdread_internal" = yes ; then
+ _dvdnav=yes
+ dvdnav_internal=yes
+ _res_comment="internal"
+ else
+ $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no
+ fi
+fi
+if test "$_dvdnav" = auto ; then
+ cat > $TMPC <<EOF
+#include <inttypes.h>
+#include <dvdnav/dvdnav.h>
+int main(void) { dvdnav_t *dvd=0; return 0; }
+EOF
+ _dvdnav=no
+ _dvdnavdir=`$_dvdnavconfig --cflags`
+ _dvdnavlibs=`$_dvdnavconfig --libs`
+ cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes
+fi
+if test "$_dvdnav" = yes ; then
+ _largefiles=yes
+ def_dvdnav='#define CONFIG_DVDNAV 1'
+ if test "$dvdnav_internal" = yes ; then
+ _inc_extra="$_inc_extra -Ilibdvdnav"
+ _inputmodules="dvdnav(internal) $_inputmodules"
+ else
+ _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`"
+ _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`"
+ _inputmodules="dvdnav $_inputmodules"
+ fi
+else
+ def_dvdnav='#undef CONFIG_DVDNAV'
+ _noinputmodules="dvdnav $_noinputmodules"
+fi
+echores "$_dvdnav"
+
+# DO NOT ADD ANY TESTS THAT USE LINKER FLAGS HERE (like cc_check).
+# Read dvdnav comment above.
+
CFLAGS_FFMPEG="-I../.. $CFLAGS"
CFLAGS="-Iffmpeg $CFLAGS"
-cc_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
-
#############################################################################
echo "Creating config.mak"
cat > config.mak << EOF
@@ -8723,6 +8728,8 @@ $def_yasm
#define CONFIG_SMALL 0
#define CONFIG_SWSCALE 1
+#define HAVE_GETHRTIME 0
+#define HAVE_INLINE_ASM 0
#define HAVE_POLL_H 1
#define HAVE_PPC4XX 0