X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=212d9fd5f4b43fc2cb0887ff1ad2a9a220d9fc11;hb=8f51f1bc927fea078b86db320c07877b719cd35e;hp=47bcfed39a25731f8906791bca3b47f1db5bd8b1;hpb=f5369a9405c459043a29f28ca489206db1ab56a2;p=vlc diff --git a/configure.ac b/configure.ac index 47bcfed39a..212d9fd5f4 100644 --- a/configure.ac +++ b/configure.ac @@ -70,12 +70,8 @@ AC_PROG_MAKE_SET AC_PROG_INSTALL AM_PROG_AS -dnl Find the right ranlib, even when cross-compiling -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) -AC_CHECK_TOOL(AR, ar, :) -AC_CHECK_TOOL(LD, ld, :) -AC_CHECK_TOOL(DLLTOOL, dlltool, :) +AC_ARG_VAR([DESKTOP_FILE_VALIDATE], [Validator for desktop entry files]) +AC_CHECK_PROGS(DESKTOP_FILE_VALIDATE, [${DESKTOP_FILE_VALIDATE} desktop-file-validate], :) dnl Check for compiler properties AC_C_CONST @@ -807,7 +803,7 @@ PKG_PROG_PKG_CONFIG() dnl On some OS we need static linking AS_IF([test -n "${PKG_CONFIG}" ],[ - AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[ + AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" -o "${SYS}" = "os2" ],[ PKG_CONFIG="${PKG_CONFIG} --static" ]) ]) @@ -841,7 +837,7 @@ dnl Manual switch for UTF-8 AC_ARG_ENABLE(non-utf8, [AS_HELP_STRING([--enable-non-utf8], [support legacy non-UTF-8 systems (default disabled)])],, [ - AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [ + AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "os2"], [ enable_non_utf8="no" ]) ]) @@ -1164,7 +1160,9 @@ ALIASES="${ALIASES} cvlc rvlc" dnl dnl Some plugins aren't useful on some platforms dnl -if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then +if test "${SYS}" = "os2"; then + VLC_ADD_PLUGIN([dynamicoverlay]) +elif test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then VLC_ADD_PLUGIN([dynamicoverlay access_shm]) elif test "${SYS}" != "mingwce"; then VLC_ADD_PLUGIN([access_smb dmo globalhotkeys]) @@ -2845,9 +2843,20 @@ then fi dnl -dnl Speex plugin +dnl Speex plugins dnl -PKG_ENABLE_MODULES_VLC([SPEEX], [], [ogg speex >= 1.0.5], [Speex decoder support], [auto]) +PKG_ENABLE_MODULES_VLC([SPEEX], [], [ogg speex >= 1.0.5], [Speex support], [auto]) +have_speexdsp="no" +AS_IF([test "${enable_speex}" != "no"], [ + PKG_CHECK_MODULES([SPEEXDSP], [speexdsp], [ + have_speexdsp="yes" + ], [ + AS_IF([test "${enable_speex}" = "yes"], [ + AC_MSG_ERROR([${SPEEXDSP_PKG_ERRORS}.]) + ]) + ]) +]) +AM_CONDITIONAL([HAVE_SPEEXDSP], [test "$have_speexdsp" = "yes"]) dnl dnl theora decoder plugin @@ -3129,7 +3138,7 @@ then if test "${SYS}" != "darwin"; then VLC_ADD_PLUGIN([vout_sdl]) fi - if test "${SYS}" != "mingw32"; then + if test "${SYS}" != "mingw32" -a "${SYS}" != "os2"; then VLC_ADD_LIBS([vout_sdl],[${X_LIBS} ${X_PRE_LIBS} -lX11]) fi VLC_ADD_CFLAGS([vout_sdl],[${SDL_CFLAGS}])