comparison configure @ 27337:0e7d22ac3adf

Add proper check for socklen_t.
author diego
date Wed, 30 Jul 2008 09:42:37 +0000
parents 94d67a4f3032
children b23ce988b57b
comparison
equal deleted inserted replaced
27336:94d67a4f3032 27337:0e7d22ac3adf
2862 _def_use_aton='#undef USE_ATON' 2862 _def_use_aton='#undef USE_ATON'
2863 if test "$_use_aton" = yes; then 2863 if test "$_use_aton" = yes; then
2864 _def_use_aton='#define USE_ATON 1' 2864 _def_use_aton='#define USE_ATON 1'
2865 fi 2865 fi
2866 2866
2867
2868 echocheck "socklen_t"
2869 cat > $TMPC << EOF
2870 #include <sys/socket.h>
2871 int main(void) { socklen_t v = 0; return v; }
2872 EOF
2873 cc_check && _socklen_t=yes
2874 if test "$_socklen_t" = yes ; then
2875 _def_socklen_t='#define HAVE_SOCKLEN_T 1'
2876 else
2877 _def_socklen_t='#undef HAVE_SOCKLEN_T'
2878 fi
2879 echores "$_socklen_t"
2880
2881
2867 echocheck "network" 2882 echocheck "network"
2868 # FIXME network check 2883 # FIXME network check
2869 if test "$_network" = yes ; then 2884 if test "$_network" = yes ; then
2870 _def_network='#define MPLAYER_NETWORK 1' 2885 _def_network='#define MPLAYER_NETWORK 1'
2871 _ld_extra="$_ld_extra $_ld_sock" 2886 _ld_extra="$_ld_extra $_ld_sock"
8230 8245
8231 /* Build our Win32-loader */ 8246 /* Build our Win32-loader */
8232 $_def_win32_loader 8247 $_def_win32_loader
8233 8248
8234 /* FFmpeg */ 8249 /* FFmpeg */
8235 #define HAVE_SOCKLEN_T 1
8236
8237 /* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */ 8250 /* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
8238 $_def_libpostproc 8251 $_def_libpostproc
8239 $_def_libpostproc_a 8252 $_def_libpostproc_a
8240 $_def_libpostproc_so 8253 $_def_libpostproc_so
8241 8254
8572 /* enable winsock2 instead of Unix functions*/ 8585 /* enable winsock2 instead of Unix functions*/
8573 $_def_winsock2 8586 $_def_winsock2
8574 8587
8575 /* define this to use inet_aton() instead of inet_pton() */ 8588 /* define this to use inet_aton() instead of inet_pton() */
8576 $_def_use_aton 8589 $_def_use_aton
8590
8591 /* socklen_t support */
8592 $_def_socklen_t
8593 #ifndef HAVE_SOCKLEN_T
8594 typedef int socklen_t;
8595 #endif
8577 8596
8578 /* enables / disables cdparanoia support */ 8597 /* enables / disables cdparanoia support */
8579 $_def_cdparanoia 8598 $_def_cdparanoia
8580 $_def_cddb 8599 $_def_cddb
8581 8600