summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-19 18:53:16 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-19 18:53:16 +0000
commit2c6df2c12019d363990b9eb2aec0e8954d8587ed (patch)
treed43ad6f0af947215fdab3deed4721a5d24760c63 /configure
parentc2ba58aefce038ce4ccf6ed23791f5de823aa041 (diff)
downloadmpv-2c6df2c12019d363990b9eb2aec0e8954d8587ed.tar.bz2
mpv-2c6df2c12019d363990b9eb2aec0e8954d8587ed.tar.xz
Create libavutil/avconfig.h, required for FFmpeg compilation.
based on a patch by Etienne Buira, etienne.buira free fr git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30376 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 1feed88be4..85a3b7a314 100755
--- a/configure
+++ b/configure
@@ -2432,10 +2432,12 @@ if test "$_big_endian" = yes ; then
_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,20 @@ EOF
# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
cmp -s "$TMPH" config.h || mv -f "$TMPH" config.h
+############################################################################
+
+# Create avconfig.h for FFmpeg.
+cat > "$TMPH" << EOF
+/* Generated by mpconfigure */
+#ifndef AVUTIL_AVCONFIG_H
+#define AVUTIL_AVCONFIG_H
+$def_av_bigendian
+#endif /* AVUTIL_AVCONFIG_H */
+EOF
+
+# Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds.
+cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h
+
#############################################################################
cat << EOF