[vlc-commits] commit: dvdnav: use pkgconfig instead of dvdnav-config specific script. ( =?UTF-8?Q?R=C3=A9mi=20Duraffort=20?=)
git at videolan.org
git at videolan.org
Fri Dec 3 21:51:27 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec 3 21:46:49 2010 +0100| [82d8b16be027ec3ec50521f300e825970a18611c] | committer: Rémi Duraffort
dvdnav: use pkgconfig instead of dvdnav-config specific script.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82d8b16be027ec3ec50521f300e825970a18611c
---
configure.ac | 25 ++++++++-----------------
1 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2f6daef..254eba0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1858,26 +1858,17 @@ then
dnl prepend -ldvdcss on OS that need it
AS_CASE(["${SYS}"], [mingw32|darwin], [VLC_ADD_LIBS([dvdnav], [-ldvdcss])])
- DVDNAV_PATH="${PATH}"
- AC_ARG_WITH(dvdnav-config-path,
- [ --with-dvdnav-config-path=PATH dvdnav-config path (default search in \$PATH)],
- [ if test "${with_dvdnav_config_path}" != "no"
- then
- DVDNAV_PATH="${with_dvdnav_config_path}:${PATH}"
- fi ])
- AC_PATH_PROG(DVDNAV_CONFIG, dvdnav-config, no, ${DVDNAV_PATH})
- if test "${DVDNAV_CONFIG}" != "no"
- then
+ PKG_CHECK_MODULES(DVDNAV, dvdnav, [
VLC_ADD_PLUGIN([dvdnav])
- VLC_ADD_CFLAGS([dvdnav],[`${DVDNAV_CONFIG} --cflags`])
- VLC_ADD_LIBS([dvdnav],[`${DVDNAV_CONFIG} --libs`])
+ VLC_ADD_CFLAGS([dvdnav],[${DVDNAV_CFLAGS}])
+ VLC_ADD_LIBS([dvdnav],[${DVDNAV_LIBS}])
AC_CHECK_LIB(dvdnav, dvdnav_get_video_resolution,
- AC_DEFINE(HAVE_DVDNAV_GET_VIDEO_RESOLUTION, 1, [Define if you have dvdnav_get_video_resolution.]),
- [], [${LIBS_dvdnav}])
+ AC_DEFINE(HAVE_DVDNAV_GET_VIDEO_RESOLUTION, 1, [Define if you have dvdnav_get_video_resolution.]),
+ [], [${LIBS_dvdnav}])
AC_CHECK_LIB(dvdnav, dvdnav_describe_title_chapters,
- AC_DEFINE(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS, 1, [Define if you have dvdnav_describe_title_chapters.]),
- [], [${LIBS_dvdnav}])
- fi
+ AC_DEFINE(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS, 1, [Define if you have dvdnav_describe_title_chapters.]),
+ [], [${LIBS_dvdnav}])
+ ])
fi
dnl
More information about the vlc-commits
mailing list