X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=c3522b03dddcf9082e67df4bcd3d64ba4fc152fa;hb=d15ef2e0b343282c17df257768d899c5840421e2;hp=ad47540760c7bafe23f4e95d79a50e33cd18ba64;hpb=3695af464c9cd9ee12402fc64a099494f8970bb8;p=vlc diff --git a/configure.ac b/configure.ac index ad47540760..c3522b03dd 100644 --- a/configure.ac +++ b/configure.ac @@ -1808,6 +1808,22 @@ if test "${enable_live555}" != "no"; then CPPFLAGS_live555="${CPPFLAGS_live555} -DSOLARIS" fi CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_live555}" + + AC_CHECK_HEADERS(liveMedia_version.hh, [ + AC_MSG_CHECKING(for liveMedia version < 1214895600 ) + AC_EGREP_CPP(yes, + [#include + #ifdef LIVEMEDIA_LIBRARY_VERSION_INT + #if LIVEMEDIA_LIBRARY_VERSION_INT < 1214895600 + yes + #endif + #endif], + [AC_MSG_RESULT([yes]) + AC_MSG_ERROR([Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia. +lternatively you can use --disable-live555 to disable the liveMedia plugin.]) + ]) + ]) + AC_CHECK_HEADERS(liveMedia.hh, [ VLC_ADD_CXXFLAGS([live555], [${CPPFLAGS_live555}]) AC_CHECK_LIB(liveMedia_pic, main, [ @@ -1819,8 +1835,8 @@ if test "${enable_live555}" != "no"; then # We only have -lliveMedia, do builtins VLC_ADD_PLUGIN([live555]) VLC_ADD_LIBS([live555], [-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment]) - ]) - ]) + ],[],[-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment]) + ],[-lgroupsock_pic -lBasicUsageEnvironment_pic -lUsageEnvironment_pic] ) if test "${SYS}" = "mingw32"; then # add ws2_32 for closesocket, select, recv VLC_ADD_LIBS([live555],[-lws2_32]) @@ -1839,6 +1855,21 @@ if test "${enable_live555}" != "no"; then if test -f "${real_live555_tree}/liveMedia/libliveMedia.a"; then AC_MSG_RESULT(${real_live555_tree}/liveMedia/libliveMedia.a) + AC_CHECK_HEADERS(${real_live555_tree}/liveMedia/include/liveMedia_version.hh,[ + AC_MSG_CHECKING(for liveMedia version < 1214895600 ) + AC_EGREP_CPP(yes, + [#include "${real_live555_tree}/liveMedia/include/liveMedia_version.hh" + #ifdef LIVEMEDIA_LIBRARY_VERSION_INT + #if LIVEMEDIA_LIBRARY_VERSION_INT < 1214895600 + yes + #endif + #endif], + [AC_MSG_RESULT([yes]) + AC_MSG_ERROR([Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia. +lternatively you can use --disable-live555 to disable the liveMedia plugin.]) + ]) + ]) + VLC_ADD_PLUGIN([live555]) if test "${SYS}" = "mingw32"; then @@ -5763,7 +5794,6 @@ VLC_OUTPUT_VLC_CONFIG_IN AC_CONFIG_FILES([ extras/package/win32/vlc.win32.nsi extras/package/macosx/Info.plist - extras/package/macosx/Resources/English.lproj/About.nib/keyedobjects.nib extras/package/macosx/Resources/English.lproj/InfoPlist.strings extras/package/macosx/plugin/Info.plist extras/package/macosx/plugin/InstallerInfo.plist