[MPlayer-dev-eng] Fix mplayer compilation with ffmpeg r21322

Etienne Buira etienne.buira at free.fr
Tue Jan 19 17:30:50 CET 2010


I hope breaking mplayer will not become an ffmpeg sport :).

Well, this patch creates libavutil/avconfig.h using existing test in
configure.
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 30373)
+++ configure	(working copy)
@@ -2432,10 +2432,12 @@
   _byte_order='big-endian'
   def_words_endian='#define WORDS_BIGENDIAN 1'
   def_bigendian='#define HAVE_BIGENDIAN 1'
+  def_av_bigendian='#define AV_HAVE_BIGENDIAN 1'
 else
   _byte_order='little-endian'
   def_words_endian='#undef WORDS_BIGENDIAN'
   def_bigendian='#define HAVE_BIGENDIAN 0'
+  def_av_bigendian='#define AV_HAVE_BIGENDIAN 0'
 fi
 echores "$_byte_order"
 
@@ -9225,6 +9227,23 @@
 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
 cmp -s "$TMPH" config.h || mv -f "$TMPH" config.h
 
+############################################################################
+
+cat > "$TMPH" << EOF
+/* Generated by mplayer's configure script */
+#ifndef AVUTIL_AVCONFIG_H
+#define AVUTIL_AVCONFIG_H
+$def_av_bigendian
+#endif /* AVUTIL_AVCONFIG_H */
+EOF
+
+if test ! -d libavutil; then
+  mkdir libavutil
+fi
+
+# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
+cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h
+
 #############################################################################
 
 cat << EOF


More information about the MPlayer-dev-eng mailing list