X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=9d3fb687301307824abed9c0f70e1052cf1a78ad;hb=2d8becef0f546ead3134cb76b62132ac4d165be9;hp=9a6076b0044fcb8a8221b7fbe64b63d6621bea08;hpb=3dee6bed380c8f047ec7af85398134fc74dee8d9;p=vlc diff --git a/configure.ac b/configure.ac index 9a6076b004..9d3fb68730 100644 --- a/configure.ac +++ b/configure.ac @@ -2,12 +2,12 @@ dnl Autoconf settings for vlc AC_COPYRIGHT([Copyright 2002-2013 VLC authors and VideoLAN]) -AC_INIT(vlc, 2.1.0-git) +AC_INIT(vlc, 2.1.0-pre1) VERSION_MAJOR=2 VERSION_MINOR=1 VERSION_REVISION=0 VERSION_EXTRA=0 -VERSION_DEV=git +VERSION_DEV=pre1 PKGDIR="vlc" AC_SUBST(PKGDIR) @@ -158,7 +158,7 @@ case "${host_os}" in VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit]) VLC_ADD_LIBS([avcodec access_avio swscale postproc i420_rgb_mmx x264 x26410b],[-Wl,-read_only_relocs,suppress]) VLC_ADD_CFLAGS([motion rotate],[-fconstant-cfstrings]) - VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation]) + VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,SystemConfiguration]) dnl Allow binaries created on Lion to run on earlier releases AC_EGREP_CPP(yes, @@ -471,10 +471,9 @@ AC_ARG_ENABLE(winstore_app, AS_HELP_STRING([--enable-winstore-app], [Build targetted for Windows Store apps (default disabled)])) -AS_IF([test "${SYS}" = "mingw32"], [ - AS_IF([test "${enable_winstore_app}" == "yes"], [ - AC_DEFINE(WINAPI_FAMILY_APP, 1, [Define if you want to build for Windows Store apps])]) - ]) +vlc_winstore_app=0 +AS_IF([test "${SYS}" = "mingw32" -a "${enable_winstore_app}" = "yes"], [vlc_winstore_app=1]) +AC_DEFINE_UNQUOTED(VLC_WINSTORE_APP, ${vlc_winstore_app}, [Define to 1 if you want to build for Windows Store apps]) dnl @@ -589,6 +588,9 @@ AC_SEARCH_LIBS([getaddrinfo], [nsl], [ LIBS="${LIBS} ${SOCKET_LIBS}" AC_LINK_IFELSE([ AC_LANG_PROGRAM([#ifdef WIN32 + # if _WIN32_WINNT < 0x600 + # error Needs vista+ + # endif #include #else #include @@ -1504,28 +1506,35 @@ AC_ARG_ENABLE(lua, [disable LUA scripting support (default enabled)])]) if test "${enable_lua}" != "no" then - PKG_CHECK_MODULES(LUA, lua5.1, + PKG_CHECK_MODULES(LUA, lua5.2, [ have_lua=yes ], [ - AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua >= 5.1 instead]) - PKG_CHECK_MODULES(LUA, lua >= 5.1, + AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua 5.1 instead]) + + PKG_CHECK_MODULES(LUA, lua5.1, [ have_lua=yes ], [ - AC_MSG_WARN([${LUA_PKG_ERRORS}, trying manual detection instead]) - have_lua=yes - AC_CHECK_HEADERS([lua.h lauxlib.h lualib.h], - [], - [ have_lua=no ] ) - AC_CHECK_LIB( lua5.1 , luaL_newstate, - [LUA_LIBS="-llua5.1"], - AC_CHECK_LIB( lua51 , luaL_newstate, - [LUA_LIBS="-llua51"], - AC_CHECK_LIB( lua , luaL_newstate, - [LUA_LIBS="-llua"], - [ have_lua=no - ], [-lm]) - ) - ) + AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua >= 5.1 instead]) + PKG_CHECK_MODULES(LUA, lua >= 5.1, + [ have_lua=yes ], + [ + AC_MSG_WARN([${LUA_PKG_ERRORS}, trying manual detection instead]) + have_lua=yes + AC_CHECK_HEADERS([lua.h lauxlib.h lualib.h], + [], + [ have_lua=no ] ) + AC_CHECK_LIB( lua5.2 , luaL_newstate, + [LUA_LIBS="-llua5.2"], + AC_CHECK_LIB( lua5.1 , luaL_newstate, + [LUA_LIBS="-llua5.1"], + AC_CHECK_LIB( lua51 , luaL_newstate, + [LUA_LIBS="-llua51"], + AC_CHECK_LIB( lua , luaL_newstate, + [LUA_LIBS="-llua"], + [ have_lua=no + ], [-lm]) + ))) + ]) ]) ]) if test "x${have_lua}" = "xyes" ; then @@ -1581,23 +1590,6 @@ dnl EXTEND_HELP_STRING([Input plugins:]) -dnl -dnl libproxy support -dnl -AC_ARG_ENABLE(libproxy, - [AS_HELP_STRING([--enable-libproxy],[support libproxy (default auto)])]) -AS_IF([test "${enable_libproxy}" != "no"], [ - PKG_CHECK_MODULES(LIBPROXY, libproxy-1.0, [ - AC_DEFINE(HAVE_LIBPROXY, 1, [Define if libproxy is available]) - VLC_ADD_CFLAGS([access_http],[$LIBPROXY_CFLAGS]) - VLC_ADD_LIBS([access_http],[$LIBPROXY_LIBS]) - ], [ - AS_IF([test -n "${enable_libproxy}"], [ - AC_MSG_ERROR([${LIBPROXY_PKG_ERRORS}.]) - ]) - ]) -]) - dnl dnl live555 input dnl @@ -1937,6 +1929,25 @@ then fi AM_CONDITIONAL(HAVE_QTKIT, [test "${SYS}" = "darwin" -a "x${enable_macosx_qtkit}" != "xno"]) +dnl +dnl AVFoundation +AC_SUBST(have_avfoundation, ["no"]) +AC_ARG_ENABLE(macosx-avfoundation, + [ --enable-macosx-avfoundation Mac OS X avcapture (video) module (default enabled on Mac OS X)]) +if test "x${enable_macosx_avfoundation}" != "xno" && + (test "${SYS}" = "darwin" || test "${enable_macosx_avfoundation}" = "yes") +then + SAVED_LIBS="${LIBS}" + LIBS="-framework AVFoundation" + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[have_avfoundation=yes],[have_avfoundation=no]) + LIBS="${SAVED_LIBS}" + if test "${have_avfoundation}" != "no" + then + VLC_ADD_LIBS([macosx],[-Wl,-framework,AVFoundation]) + VLC_ADD_PLUGIN([avcapture]) + fi +fi +AM_CONDITIONAL(HAVE_AVFOUNDATION, [test "${have_avfoundation}" != "no"]) dnl dnl Demux plugins @@ -2295,7 +2306,7 @@ AS_IF([test "${enable_libva}" = "yes" -a "${have_avcodec}" != "yes" ], [ AC_MSG_ERROR([--enable-libva and --disable-avcodec options are mutually exclusive. Use --enable-avcodec.]) ]) have_avcodec_vaapi="no" -AS_IF([test "${enable_libva}" != "no" -a "${have_avcodec}" == "yes"], [ +AS_IF([test "${enable_libva}" != "no" -a "${have_avcodec}" = "yes"], [ PKG_CHECK_MODULES(LIBVA, [libva libva-x11], [ VLC_SAVE_FLAGS CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}" @@ -3017,7 +3028,7 @@ AC_ARG_ENABLE(vdpau, [AS_HELP_STRING([--enable-vdpau], [VDPAU hardware decoder support (default auto)])]) have_vdpau="no" -AS_IF([test "${enable_vdpau}" != "no" -a "${have_avcodec}" == "yes"], [ +AS_IF([test "${enable_vdpau}" != "no" -a "${have_avcodec}" = "yes"], [ PKG_CHECK_MODULES([VDPAU], [vdpau], [ have_vdpau="yes" AS_IF([test "${no_x}" = "yes"], [ @@ -3210,6 +3221,18 @@ then VLC_ADD_LIBS([vout_ios], [-Wl,-framework,OpenGLES,-framework,QuartzCore,-framework,UIKit,-framework,Foundation]) fi +dnl +dnl iOS ES2 vout module +dnl +AC_ARG_ENABLE(ios-vout2, + [ --enable-ios-vout2 iOS video output module (default disabled)]) +if test "${enable_ios_vout2}" = "yes" +then + VLC_ADD_PLUGIN([vout_ios2]) + VLC_ADD_LIBS([vout_ios2], [-Wl,-framework,OpenGLES,-framework,QuartzCore,-framework,UIKit]) +fi + + dnl dnl Windows DirectX module dnl @@ -3519,6 +3542,19 @@ then ], [ AC_MSG_ERROR([cannot find CoreAudio headers]) ]) fi +dnl +dnl iOS CoreAudio plugin +dnl +AC_ARG_ENABLE(ios-audio, + [ --enable-ios-audio Audio module for iOS (default disabled)]) +if test "${enable_ios_audio}" = "yes" +then + AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, + [ VLC_ADD_PLUGIN([audiounit_ios]) + VLC_ADD_LIBS([audiounit_ios],[-Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,CoreServices]) + ], [ AC_MSG_ERROR([cannot find AudioUnit headers]) ]) +fi + dnl dnl AudioQueue plugin dnl @@ -3576,6 +3612,22 @@ AS_IF([test "$enable_kai" != "no"], [ AC_SUBST(KAI_LIBS) AM_CONDITIONAL([HAVE_KAI], [test "${have_kai}" = "yes"]) +dnl +dnl chromaprint audio track fingerprinter +dnl +m4_pushdef([libchromaprint_version], 0.6.0) +PKG_WITH_MODULES([CHROMAPRINT],[libchromaprint >= libchromaprint_version], + VLC_ADD_PLUGIN([stream_out_chromaprint fingerprinter]) + VLC_ADD_CFLAGS([stream_out_chromaprint],[${CHROMAPRINT_CFLAGS}] [-I./webservices -I../stream_out]) + VLC_ADD_LIBS([stream_out_chromaprint],[${CHROMAPRINT_LIBS}]) + VLC_ADD_LIBS([fingerprinter],[-lm]), + AS_IF([test "${enable_chromaprint}" = "yes"], + [AC_MSG_ERROR(Library [libchromaprint >= libchromaprint_version] needed for [chromaprint] was not found)], + [AC_MSG_WARN(Library [libchromaprint >= libchromaprint_version] needed for [chromaprint] was not found)] + ), + [(Chromaprint based audio fingerprinter)],[auto]) +m4_popdef([libchromaprint_version]) + dnl dnl Interface plugins dnl