Mercurial > mplayer.hg
comparison configure @ 28484:6abda55d2574
Add proper check for posix_memalign(), needed for FFmpeg.
author | diego |
---|---|
date | Tue, 10 Feb 2009 02:01:35 +0000 |
parents | d553eb6c18b9 |
children | 3f597aacbb69 |
comparison
equal
deleted
inserted
replaced
28483:c91145efcde2 | 28484:6abda55d2574 |
---|---|
3141 darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1' | 3141 darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1' |
3142 fi | 3142 fi |
3143 echores "$_memalign" | 3143 echores "$_memalign" |
3144 | 3144 |
3145 | 3145 |
3146 echocheck "posix_memalign()" | |
3147 posix_memalign=no | |
3148 def_posix_memalign='#define HAVE_POSIX_MEMALIGN 0' | |
3149 cat > $TMPC << EOF | |
3150 #define _XOPEN_SOURCE 600 | |
3151 #include <stdlib.h> | |
3152 int main(void) { posix_memalign(NULL, 0, 0); } | |
3153 EOF | |
3154 cc_check && posix_memalign=yes && def_posix_memalign='#define HAVE_POSIX_MEMALIGN 1' | |
3155 echores "$posix_memalign" | |
3156 | |
3157 | |
3146 echocheck "alloca.h" | 3158 echocheck "alloca.h" |
3147 cat > $TMPC << EOF | 3159 cat > $TMPC << EOF |
3148 #include <alloca.h> | 3160 #include <alloca.h> |
3149 int main(void) { (void) alloca(0); return 0; } | 3161 int main(void) { (void) alloca(0); return 0; } |
3150 EOF | 3162 EOF |
8616 $def_fast_unaligned | 8628 $def_fast_unaligned |
8617 $def_libavcodec_mpegaudio_hp | 8629 $def_libavcodec_mpegaudio_hp |
8618 $def_memalign_hack | 8630 $def_memalign_hack |
8619 $def_mlib | 8631 $def_mlib |
8620 $def_mkstemp | 8632 $def_mkstemp |
8633 $def_posix_memalign | |
8621 $def_pthreads | 8634 $def_pthreads |
8622 $def_threads | 8635 $def_threads |
8623 $def_yasm | 8636 $def_yasm |
8624 | 8637 |
8625 #define CONFIG_FASTDIV 0 | 8638 #define CONFIG_FASTDIV 0 |
8627 #define CONFIG_GPL 1 | 8640 #define CONFIG_GPL 1 |
8628 #define CONFIG_GRAY 0 | 8641 #define CONFIG_GRAY 0 |
8629 #define CONFIG_HARDCODED_TABLES 0 | 8642 #define CONFIG_HARDCODED_TABLES 0 |
8630 #define CONFIG_LIBAMR_NB_FIXED 0 | 8643 #define CONFIG_LIBAMR_NB_FIXED 0 |
8631 #define CONFIG_LIBVORBIS 0 | 8644 #define CONFIG_LIBVORBIS 0 |
8632 #define CONFIG_POSIX_MEMALIGN 0 | |
8633 #define CONFIG_POWERPC_PERF 0 | 8645 #define CONFIG_POWERPC_PERF 0 |
8634 #define CONFIG_SMALL 0 | 8646 #define CONFIG_SMALL 0 |
8635 #define CONFIG_SWSCALE 1 | 8647 #define CONFIG_SWSCALE 1 |
8636 | 8648 |
8637 #define HAVE_POLL_H 1 | 8649 #define HAVE_POLL_H 1 |