926
928
AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ])
931
dnl Manual switch for UTF-8
932
AC_ARG_ENABLE(non-utf8,
933
[ --enable-non-utf8 Legacy non-UTF-8 systems support (default enabled)], [
934
enable_non_utf8="yes"
936
AS_IF([test "${enable_non_utf8}" != "no"], [
937
AC_DEFINE([ASSUME_UTF8], [1],
938
[Define to 1 if the operating system uses UTF-8 internally])
929
942
dnl Check for dbus
930
943
AC_ARG_ENABLE(dbus,
931
944
[ --enable-dbus Linux D-BUS message bus system (default enabled)])
1563
dnl Allow runing as root (useful for people runing on embedded platforms)
1576
dnl Allow running as root (useful for people running on embedded platforms)
1565
1578
AC_ARG_ENABLE(run-as-root,
1566
[ --enable-run-as-root allow runing VLC as root (default disabled)])
1579
[ --enable-run-as-root allow running VLC as root (default disabled)])
1567
1580
AS_IF([test "${enable_run_as_root}" = "yes"],[
1568
1581
AC_DEFINE(ALLOW_RUN_AS_ROOT, 1,
1569
[Define to 1 to allow runing VLC as root (uid 0).])
1582
[Define to 1 to allow running VLC as root (uid 0).])
1633
1646
AC_ARG_VAR([LUAC], [LUA byte compiler])
1634
1647
AC_PATH_PROGS(LUAC,[${LUAC} luac], [false])
1635
AS_IF([test "${ac_cv_path_LUAC}" = "false"], [
1648
AS_IF([test "${LUAC}" = "false"], [
1636
1649
AC_MSG_ERROR([Could not find the LUA byte compiler.])
1713
1726
PKG_CHECK_MODULES(TAGLIB, taglib >= 1.5,
1714
1727
[ VLC_ADD_PLUGIN([taglib])
1715
1728
VLC_ADD_LIBS([taglib],[$TAGLIB_LIBS -lz])
1716
VLC_ADD_CXXFLAGS([taglib],[$TAGLIB_CFLAGS]) ],
1729
VLC_ADD_CXXFLAGS([taglib],[$TAGLIB_CFLAGS])
1731
AC_CHECK_HEADERS(taglib/mp4coverart.h)
1717
1734
[AC_MSG_WARN(TagLib library not found)])
2460
2477
dnl modplug demux plugin
2462
2479
AC_ARG_ENABLE(mod,
2463
[ --enable-mod Mod demux support (default enabled)])
2464
if test "${enable_mod}" != "no"
2466
AC_ARG_WITH(mod-tree,
2467
[ --with-mod-tree=PATH mod tree for static linking])
2468
if test -n "${with_mod_tree}"
2470
AC_MSG_CHECKING(for libmodplug.a in ${with_mod_tree})
2471
real_mod_tree="`cd ${with_mod_tree} 2>/dev/null && pwd`"
2472
if test -z "${real_mod_tree}"
2474
dnl The given directory can't be found
2476
AC_MSG_ERROR([cannot cd to ${with_mod_tree}])
2478
if test -f "${real_mod_tree}/src/.libs/libmodplug.a"
2480
dnl Use a custom mod
2481
AC_MSG_RESULT(${real_mod_tree}/src/.libs/libmodplug.a)
2482
VLC_ADD_PLUGIN([mod])
2483
VLC_ADD_LIBS([mod],[${real_mod_tree}/src/.libs/libmodplug.a -lstdc++])
2484
VLC_ADD_CXXFLAGS([mod],[-I${real_mod_tree}/include])
2486
dnl The given mod wasn't built
2488
AC_MSG_ERROR([cannot find ${real_mod_tree}/src/.libs/libmodplug.a, make sure you compiled mod in ${with_mod_tree}])
2491
PKG_CHECK_MODULES(LIBMODPLUG, libmodplug >= 0.8,
2492
[ VLC_ADD_PLUGIN([mod])
2480
[ --enable-mod Mod demux support (default auto)])
2481
if test "${enable_mod}" != "no" ; then
2482
PKG_CHECK_MODULES(LIBMODPLUG, [libmodplug >= 0.8.4 libmodplug != 0.8.8], [
2483
VLC_ADD_PLUGIN([mod])
2493
2484
VLC_ADD_CXXFLAGS([mod],[$LIBMODPLUG_CFLAGS])
2494
2485
VLC_ADD_LIBS([mod],[$LIBMODPLUG_LIBS])
2495
],[AC_MSG_WARN([libmodplug not found!])])
2487
AS_IF([test x"${enable_mod}" = "xyes"],
2488
[AC_MSG_ERROR(libmodplug not found or a broken version (0.8.8.0) was found!)],
2489
[AC_MSG_WARN(libmodplug not found or a broken version (0.8.8.0) was found!)])
2648
2642
dnl libid3tag support (FIXME!!! doesn't work with new input)
2650
2644
AC_ARG_ENABLE( id3tag,
2651
[ --disable-id3tag id3tag metadata reader plugin (default disabled)])
2645
[ --enable-id3tag id3tag metadata reader plugin (default disabled)])
2652
2646
AS_IF([test "${enable_id3tag}" = "yes"], [
2653
2647
AC_CHECK_HEADERS(id3tag.h, [
2654
2648
AS_IF([test "${have_zlib}" = "yes"],[
3329
3323
PKG_CHECK_MODULES(XCB, [xcb])
3330
3324
PKG_CHECK_MODULES(XCB_SHM, [xcb-shm])
3331
VLC_ADD_PLUGIN([screensaver xcb_x11 xcb_screen xcb_apps])
3325
VLC_ADD_PLUGIN([screensaver xcb_x11 xcb_window xcb_screen xcb_apps])
3333
3327
AS_IF([test "${enable_xvideo}" != "no"], [
3334
3328
PKG_CHECK_MODULES(XCB_XV, [xcb-xv >= 1.1.90.1], [
3358
3352
have_xcb_keysyms="no"
3359
3353
need_xid_provider="yes"
3354
AC_MSG_WARN([libxcb-keysyms not found. Hotkeys will not be supported.])
3363
3358
AS_IF([test "${have_xcb_keysyms}" = "yes"], [
3364
3359
PKG_CHECK_MODULES(XPROTO, [xproto])
3365
VLC_ADD_PLUGIN([xcb_window globalhotkeys])
3360
VLC_ADD_PLUGIN([globalhotkeys])
3366
3361
VLC_ADD_CFLAGS([globalhotkeys], [${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}])
3367
3362
VLC_ADD_LIBS([globalhotkeys], [${XCB_KEYSYMS_LIBS} ${XCB_LIBS}])
3363
VLC_ADD_CFLAGS([xcb_window], [-DHAVE_XCB_KEYSYMS])
3369
3365
VLC_ADD_PLUGIN([xdg_screensaver])
3416
3412
if test "${SYS}" != "darwin"; then
3417
3413
VLC_ADD_PLUGIN([vout_sdl aout_sdl])
3415
if test "${SYS}" != "mingw32"; then
3416
VLC_ADD_LIBS([vout_sdl],[${X_LIBS} ${X_PRE_LIBS} -lX11])
3419
3418
VLC_ADD_CFLAGS([vout_sdl aout_sdl],[${SDL_CFLAGS}])
3420
3419
VLC_ADD_LIBS([vout_sdl aout_sdl],[${SDL_LIBS}])