# HG changeset patch # User diego # Date 1263927196 0 # Node ID f117b72cc42b6e68a1cc6e5dc4af8d86116169f8 # Parent 0dcabc9d44ad79148b88b2bbedefd1676221b506 Create libavutil/avconfig.h, required for FFmpeg compilation. based on a patch by Etienne Buira, etienne.buira free fr diff -r 0dcabc9d44ad -r f117b72cc42b configure --- a/configure Tue Jan 19 18:02:44 2010 +0000 +++ b/configure Tue Jan 19 18:53:16 2010 +0000 @@ -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,20 @@ # 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