From 314bd6d6494fe9b9b948532595bf081be49a46ac Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Wed, 5 Aug 2009 21:28:49 +0200 Subject: [PATCH] Simplify dc1394 and dv detection. Be careful, while dv was updated to the new APIs, dc1394 wasn't --- configure.ac | 63 ++++------------------------------------------------ 1 file changed, 4 insertions(+), 59 deletions(-) diff --git a/configure.ac b/configure.ac index 9a1cafd269..4d628e6dfa 100644 --- a/configure.ac +++ b/configure.ac @@ -1931,66 +1931,11 @@ lternatively you can use --disable-live555 to disable the liveMedia plugin.]) fi dnl -dnl special access module for dc1394 input +dnl - special access module for dc1394 input +dnl - dv module: digital video module check for libraw1394 dnl -AC_ARG_ENABLE(dc1394, - [ --enable-dc1394 dc1394 access module (default disabled)]) -if test "${enable_dc1394}" = "yes" -then - dnl - dnl Check for libraw1394 - dnl - PKG_CHECK_MODULES(LIBRAW1394, libraw1394 >= 2.0.1, - [ - VLC_ADD_LIBS([dc1394],[`${PKG_CONFIG} --libs libraw1394`]) - VLC_ADD_CPPFLAGS([dc1394],[`${PKG_CONFIG} --cflags libraw1394`]) - ], - [AC_MSG_ERROR([Couldn't find libraw1394 >= 2.0.1, install libraw1394 development package])] - ) - - dnl - dnl Check for libdc1394 - dnl - PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.2, - [ - VLC_ADD_PLUGIN([dc1394]) - VLC_ADD_LIBS([dc1394],[`${PKG_CONFIG} --libs libdc1394-2`]) - VLC_ADD_CPPFLAGS([access_dv],[`${PKG_CONFIG} --cflags libdc1394-2`]) - ], - [AC_MSG_ERROR([Couldn't find libdc1394 >= 2.0.2, install libdc1394 development package])] - ) -fi - -dnl -dnl dv module: digital video module check for libraw1394 -dnl -AC_ARG_ENABLE(dv, -[ --enable-dv dv input module (default disabled)]) -if test "${enable_dv}" = "yes" -then - dnl - dnl Check for libraw1394 - dnl - PKG_CHECK_MODULES(LIBRAW1394, libraw1394 >= 2.0.1, - [ - VLC_ADD_LIBS([access_dv],[`${PKG_CONFIG} --libs libraw1394`]) - VLC_ADD_CPPFLAGS([access_dv],[`${PKG_CONFIG} --cflags libraw1394`]) - ], - [AC_MSG_ERROR([Couldn't find libraw1394 >= 2.0.1, install libraw1394 development package])] - ) - - dnl - dnl Check for libavc1394 - dnl - PKG_CHECK_MODULES(LIBAVC1394, libavc1394 >= 0.5.3, - [ - VLC_ADD_PLUGIN([access_dv]) - VLC_ADD_LIBS([access_dv],[`${PKG_CONFIG} --libs libavc1394`]) - VLC_ADD_CPPFLAGS([access_dv],[`${PKG_CONFIG} --cflags libavc1394`]) - ], - [AC_MSG_ERROR([Couldn't find libavc1394 >= 0.5.1, install libavc1394 development package])] - ) -fi +PKG_ENABLE_MODULES_VLC([dc1394], [libraw1394 >= 2.0.1 libdc1394 >= 1.0.0], [dc1394 access module], [auto]) +PKG_ENABLE_MODULES_VLC([access_dv], [libraw1394 >= 2.0.1 libavc1394 >= 0.5.3], [DV input module], [auto]) dnl dnl dvdread module: check for libdvdread -- 2.39.2