~ubuntu-branches/ubuntu/natty/vlc/natty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-07-23 10:41:59 UTC
  • mfrom: (1.1.31 upstream)
  • Revision ID: james.westby@ubuntu.com-20100723104159-pudrtu70a1svhiyl
Tags: 1.1.1-1+exp1ubuntu1
* Merge from Debian experimental, remaining changes:
  - build and install the libx264 plugin
  - add Xb-Npp header to vlc package
  - Add apport hook to include more vlc dependencies in bug reports

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
AC_COPYRIGHT([Copyright 2002-2010 the VideoLAN team])
4
4
 
5
 
AC_INIT(vlc, 1.1.0)
 
5
AC_INIT(vlc, 1.1.1)
6
6
VERSION_MAJOR="1"
7
7
VERSION_MINOR="1"
8
 
VERSION_REVISION="0"
 
8
VERSION_REVISION="1"
9
9
VERSION_EXTRA=""
10
10
PKGDIR="vlc"
11
11
AC_SUBST(PKGDIR)
268
268
        enable_asademux="yes"
269
269
        echo "  Assuming --enable-asademux"
270
270
 
 
271
        enable_non_utf8="no"
 
272
        echo "  Assuming --disable-non-utf8"
271
273
        enable_skins2="no"
272
274
        echo "  Assuming --disable-skins2"
273
275
        enable_xcb="no"
926
928
AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ])
927
929
 
928
930
 
 
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"
 
935
])
 
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])
 
939
])
 
940
 
 
941
 
929
942
dnl Check for dbus
930
943
AC_ARG_ENABLE(dbus,
931
944
  [  --enable-dbus           Linux D-BUS message bus system (default enabled)])
1560
1573
])
1561
1574
 
1562
1575
dnl
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)
1564
1577
dnl
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).])
1570
1583
])
1571
1584
 
1572
1585
dnl
1632
1645
  fi
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.])
1637
1650
  ])
1638
1651
fi
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])
 
1730
        AC_LANG_PUSH(C++)
 
1731
        AC_CHECK_HEADERS(taglib/mp4coverart.h)
 
1732
        AC_LANG_POP(C++)
 
1733
      ],
1717
1734
      [AC_MSG_WARN(TagLib library not found)])
1718
1735
  ])
1719
1736
 
2460
2477
dnl  modplug demux plugin
2461
2478
dnl
2462
2479
AC_ARG_ENABLE(mod,
2463
 
  [  --enable-mod            Mod demux support (default enabled)])
2464
 
if test "${enable_mod}" != "no"
2465
 
then
2466
 
  AC_ARG_WITH(mod-tree,
2467
 
  [  --with-mod-tree=PATH    mod tree for static linking])
2468
 
  if test -n "${with_mod_tree}"
2469
 
  then
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}"
2473
 
    then
2474
 
      dnl  The given directory can't be found
2475
 
      AC_MSG_RESULT(no)
2476
 
      AC_MSG_ERROR([cannot cd to ${with_mod_tree}])
2477
 
    fi
2478
 
    if test -f "${real_mod_tree}/src/.libs/libmodplug.a"
2479
 
    then
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])
2485
 
    else
2486
 
      dnl  The given mod wasn't built
2487
 
      AC_MSG_RESULT(no)
2488
 
      AC_MSG_ERROR([cannot find ${real_mod_tree}/src/.libs/libmodplug.a, make sure you compiled mod in ${with_mod_tree}])
2489
 
    fi
2490
 
  else
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!])])
2496
 
  fi
 
2486
    ],[
 
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!)])
 
2490
    ])
2497
2491
fi
2498
2492
 
2499
2493
dnl
2648
2642
dnl   libid3tag support (FIXME!!! doesn't work with new input)
2649
2643
dnl
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"],[
3328
3322
  dnl libxcb
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])
3332
3326
 
3333
3327
  AS_IF([test "${enable_xvideo}" != "no"], [
3334
3328
    PKG_CHECK_MODULES(XCB_XV, [xcb-xv >= 1.1.90.1], [
3357
3351
    ], [
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.])
3360
3355
    ])
3361
3356
  ])
3362
3357
 
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])
3368
3364
  ])
3369
3365
  VLC_ADD_PLUGIN([xdg_screensaver])
3370
3366
])
3416
3412
      if test "${SYS}" != "darwin"; then
3417
3413
        VLC_ADD_PLUGIN([vout_sdl aout_sdl])
3418
3414
      fi
 
3415
      if test "${SYS}" != "mingw32"; then
 
3416
        VLC_ADD_LIBS([vout_sdl],[${X_LIBS} ${X_PRE_LIBS} -lX11])
 
3417
      fi
3419
3418
      VLC_ADD_CFLAGS([vout_sdl aout_sdl],[${SDL_CFLAGS}])
3420
3419
      VLC_ADD_LIBS([vout_sdl aout_sdl],[${SDL_LIBS}])
3421
3420
 
3719
3718
  then
3720
3719
    VLC_ADD_PLUGIN([aa])
3721
3720
    VLC_ADD_LIBS([aa],[-laa])
 
3721
    if test "${SYS}" != "mingw32"; then
 
3722
      VLC_ADD_LIBS([aa],[${X_LIBS} ${X_PRE_LIBS} -lX11])
 
3723
    fi
3722
3724
  fi
3723
3725
fi
3724
3726