Mercurial > mplayer.hg
comparison configure @ 30334:f117b72cc42b
Create libavutil/avconfig.h, required for FFmpeg compilation.
based on a patch by Etienne Buira, etienne.buira free fr
author | diego |
---|---|
date | Tue, 19 Jan 2010 18:53:16 +0000 |
parents | a1383e528fa7 |
children | 968bab8aa5a5 |
comparison
equal
deleted
inserted
replaced
30333:0dcabc9d44ad | 30334:f117b72cc42b |
---|---|
2430 fi | 2430 fi |
2431 if test "$_big_endian" = yes ; then | 2431 if test "$_big_endian" = yes ; then |
2432 _byte_order='big-endian' | 2432 _byte_order='big-endian' |
2433 def_words_endian='#define WORDS_BIGENDIAN 1' | 2433 def_words_endian='#define WORDS_BIGENDIAN 1' |
2434 def_bigendian='#define HAVE_BIGENDIAN 1' | 2434 def_bigendian='#define HAVE_BIGENDIAN 1' |
2435 def_av_bigendian='#define AV_HAVE_BIGENDIAN 1' | |
2435 else | 2436 else |
2436 _byte_order='little-endian' | 2437 _byte_order='little-endian' |
2437 def_words_endian='#undef WORDS_BIGENDIAN' | 2438 def_words_endian='#undef WORDS_BIGENDIAN' |
2438 def_bigendian='#define HAVE_BIGENDIAN 0' | 2439 def_bigendian='#define HAVE_BIGENDIAN 0' |
2440 def_av_bigendian='#define AV_HAVE_BIGENDIAN 0' | |
2439 fi | 2441 fi |
2440 echores "$_byte_order" | 2442 echores "$_byte_order" |
2441 | 2443 |
2442 | 2444 |
2443 echocheck "extern symbol prefix" | 2445 echocheck "extern symbol prefix" |
9223 EOF | 9225 EOF |
9224 | 9226 |
9225 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. | 9227 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. |
9226 cmp -s "$TMPH" config.h || mv -f "$TMPH" config.h | 9228 cmp -s "$TMPH" config.h || mv -f "$TMPH" config.h |
9227 | 9229 |
9230 ############################################################################ | |
9231 | |
9232 # Create avconfig.h for FFmpeg. | |
9233 cat > "$TMPH" << EOF | |
9234 /* Generated by mpconfigure */ | |
9235 #ifndef AVUTIL_AVCONFIG_H | |
9236 #define AVUTIL_AVCONFIG_H | |
9237 $def_av_bigendian | |
9238 #endif /* AVUTIL_AVCONFIG_H */ | |
9239 EOF | |
9240 | |
9241 # Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds. | |
9242 cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h | |
9243 | |
9228 ############################################################################# | 9244 ############################################################################# |
9229 | 9245 |
9230 cat << EOF | 9246 cat << EOF |
9231 | 9247 |
9232 Config files successfully generated by ./configure $_configuration ! | 9248 Config files successfully generated by ./configure $_configuration ! |