From 7daf30cd9c12fcd86791cd062ba5141241c6394b Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 11 Jan 2009 12:58:06 +0000 Subject: [PATCH] cosmetics: Move some checks to more logical places. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28298 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 170 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 87 insertions(+), 83 deletions(-) diff --git a/configure b/configure index 1cc7539d49..2cde77b630 100755 --- a/configure +++ b/configure @@ -2977,6 +2977,53 @@ else fi echores "$_network" + +echocheck "inet6" +if test "$_inet6" = auto ; then + cat > $TMPC << EOF +#include +#if !defined(_WIN32) || defined(__CYGWIN__) +#include +#include +#else +#include +#endif +int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); return 0; } +EOF + _inet6=no + if cc_check $_ld_sock ; then + _inet6=yes + fi +fi +if test "$_inet6" = yes ; then + _def_inet6='#define HAVE_AF_INET6 1' +else + _def_inet6='#undef HAVE_AF_INET6' +fi +echores "$_inet6" + + +echocheck "gethostbyname2" +if test "$_gethostbyname2" = auto ; then +cat > $TMPC << EOF +#include +#include +#include +int main(void) { gethostbyname2("", AF_INET); return 0; } +EOF + _gethostbyname2=no + if cc_check ; then + _gethostbyname2=yes + fi +fi +if test "$_gethostbyname2" = yes ; then + _def_gethostbyname2='#define HAVE_GETHOSTBYNAME2 1' +else + _def_gethostbyname2='#undef HAVE_GETHOSTBYNAME2' +fi +echores "$_gethostbyname2" + + echocheck "inttypes.h (required)" cat > $TMPC << EOF #include @@ -3074,6 +3121,16 @@ fi echores "$_alloca" +echocheck "fastmemcpy" +# fastmemcpy check is done earlier with tests of CPU & binutils features +if test "$_fastmemcpy" = yes ; then + _def_fastmemcpy='#define CONFIG_FASTMEMCPY 1' +else + _def_fastmemcpy='#undef CONFIG_FASTMEMCPY' +fi +echores "$_fastmemcpy" + + echocheck "mman.h" cat > $TMPC << EOF #include @@ -3517,6 +3574,15 @@ _def_posix_select='#undef HAVE_POSIX_SELECT' echores "$_posix_select" +echocheck "audio select()" +if test "$_select" = no ; then + _def_select='#undef HAVE_AUDIO_SELECT' +elif test "$_select" = yes ; then + _def_select='#define HAVE_AUDIO_SELECT 1' +fi +echores "$_select" + + echocheck "gettimeofday()" cat > $TMPC << EOF #include @@ -4988,25 +5054,6 @@ echores "$_directx" fi #if win32; then -echocheck "NAS" -if test "$_nas" = auto ; then - cat > $TMPC << EOF -#include