X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=ef96b9be433594fe1a9741787a461797e9f2f03c;hb=93a0a44cf473a18c95405bbe45f423d5ec6f200a;hp=5e5311c92b5f95a12a88032617a9ab6efc6480e1;hpb=e48600a2b23e993b5871018c4d121ec0215eb90c;p=vlc diff --git a/configure.ac b/configure.ac index 5e5311c92b..ef96b9be43 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_CANONICAL_SYSTEM dnl XXX: we don't put any flags here, because automake 1.5 doesn't support dnl them. And we need the comma otherwize automake will choke on it. -AM_INIT_AUTOMAKE(vlc,0.8.3) +AM_INIT_AUTOMAKE(vlc,0.8.3-svn) AM_CONFIG_HEADER(config.h) dnl @@ -398,9 +398,10 @@ AC_CHECK_FUNCS([getaddrinfo getnameinfo gai_strerror]) AH_TEMPLATE(HAVE_ADDRINFO, [Define to `1' if defines struct addrinfo.]) AC_CHECK_TYPES([struct addrinfo],[AC_DEFINE(HAVE_ADDRINFO)],, [#include -#if defined( UNDER_CE ) -# include -#elif defined( WIN32 ) +#if defined( WIN32 ) || defined( UNDER_CE ) +# if defined(UNDER_CE) && defined(sockaddr_storage) +# undef sockaddr_storage +# endif # include # include #else @@ -2007,7 +2008,7 @@ then VLC_ADD_PLUGINS([stream_out_switcher]) fi VLC_ADD_CFLAGS([ffmpeg stream_out_switcher],[`${FFMPEG_CONFIG} --cflags`]) - VLC_ADD_LDFLAGS([ffmpeg],[`${FFMPEG_CONFIG} --plugin-libs avcodec avformat postproc`]) + VLC_ADD_LDFLAGS([ffmpeg stream_out_switcher],[`${FFMPEG_CONFIG} --plugin-libs avcodec avformat postproc`]) else AC_ARG_WITH(ffmpeg-mp3lame, [ --with-ffmpeg-mp3lame specify if ffmpeg has been compiled with mp3lame support], @@ -2042,10 +2043,10 @@ then AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) AC_CHECK_LIB(avcodec, avcodec_init, [ VLC_ADD_BUILTINS([ffmpeg]) + VLC_ADD_LDFLAGS([ffmpeg stream_out_switcher],[-lavcodec]) if test "${enable_sout}" != "no"; then VLC_ADD_BUILTINS([stream_out_switcher]) - fi - VLC_ADD_LDFLAGS([ffmpeg],[-lavcodec])], + fi], [ AC_MSG_ERROR([Could not find ffmpeg on your system: you may get it from http://ffmpeg.sf.net/ (cvs version is recommended). Alternatively you can use --disable-ffmpeg to disable the ffmpeg plugins.]) ]) AC_CHECK_LIB(avformat, av_open_input_stream, [ AC_DEFINE(HAVE_LIBAVFORMAT, 1, @@ -2113,7 +2114,7 @@ then if test "${enable_sout}" != "no"; then VLC_ADD_BUILTINS([stream_out_switcher]) fi - VLC_ADD_LDFLAGS([ffmpeg],[-L${real_ffmpeg_tree}/libavcodec ${real_ffmpeg_tree}/libavcodec/libavcodec.a]) + VLC_ADD_LDFLAGS([ffmpeg stream_out_switcher],[-L${real_ffmpeg_tree}/libavcodec ${real_ffmpeg_tree}/libavcodec/libavcodec.a]) VLC_ADD_CPPFLAGS([ffmpeg stream_out_switcher],[-I${real_ffmpeg_tree}/libavcodec]) if test -f "${real_ffmpeg_tree}/libavformat/libavformat.a"; then