Commit e9933970 authored by Rocky Bernstein's avatar Rocky Bernstein

Clean up options and processing relating to libcdio, libvcdinfo,

cddax, and vcdx. Add libvcdinfo to wxwindows module if it is around.
parent 42ac9cdb
...@@ -1627,38 +1627,46 @@ then ...@@ -1627,38 +1627,46 @@ then
VLC_ADD_PLUGINS([pvr]) VLC_ADD_PLUGINS([pvr])
fi fi
dnl Need to test libcdio and libvcdinfo for a number of things. Do it now.
AC_ARG_ENABLE(libcdio,
[ --enable-libcdio CD input and control library support (default enabled)])
have_libcdio=no
have_libvcdinfo=no
if test "${enable_libcdio}" != "no"
then
PKG_CHECK_MODULES(LIBCDIO, libcdio >= 0.72,
have_libcdio=yes
AC_DEFINE(HAVE_LIBCDIO, [],
[Define if you have libcdio 0.72 or greater installed]))
PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.21,
have_libvcdinfo=yes
AC_DEFINE(HAVE_VCDINFO, [],
[Define if you have libvcdinfo 0.7.21 or greater installed]))
fi
dnl dnl
dnl VCDX and CDDAX modules dnl VCDX and CDDAX modules
dnl dnl
AC_ARG_ENABLE(libcdio, AC_ARG_ENABLE(cddax,
[ --enable-libcdio CDDA support via libcdio (default enabled)]) [ --enable-cddax audio CD plugin with CD Text and CD paranoia via libcdio (default disabled)])
AC_ARG_ENABLE(libcddb, AC_ARG_ENABLE(libcddb,
[ --enable-libcddb CDDB support for CDDAX (default enabled)]) [ --enable-libcddb CDDB support for libcdio audio CD (default enabled)])
AC_ARG_ENABLE(vcdx,
[ --enable-vcdx VCD support with Navigation (default disabled)])
AC_ARG_ENABLE(cdda,
[ --enable-cdda CDDA plugin support (default enabled)])
AC_ARG_ENABLE(cddax,
[ --enable-cddax CDDA plugin with CD Text and possibly CDDB and paranoia support (default disabled)])
if test "${enable_cddax}" = "yes" if test "${enable_cddax}" = "yes"
then then
PKG_CHECK_MODULES(LIBCDIO, libcdio >= 0.71, if test "$have_libcdio" = "yes"
[ then
AC_DEFINE(HAVE_CDDAX, [], [Define for the CD-DA plugin using libcdio]) AC_DEFINE(HAVE_CDDAX, [], [Define for the audio CD plugin using libcdio])
VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_LIBS]) VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_LIBS $LIBCDIO_PARANOIA_LIBS])
VLC_ADD_CFLAGS([cddax],[$LIBCDIO_CFLAGS]) VLC_ADD_CFLAGS([cddax],[$LIBCDIO_CFLAGS])
VLC_ADD_PLUGINS([cddax])], VLC_ADD_PLUGINS([cddax])
[AC_MSG_WARN(libcdio library not found) else
HAVE_CDDAX=no]) AC_MSG_WARN([cddax plugin disabled because ok libcdio library not found or disabled])
HAVE_CDDAX=no
PKG_CHECK_MODULES(LIBCDIO_PARANOIA, libcdio_paranoia >= 0.72, [ fi
VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_CDDA_LIBS $LIBCDIO_PARANOIA_LIBS])],
HAVE_CDDAX=no)
if test "$enable_libcddb" != "no"; then if test "$enable_libcddb" != "no"; then
PKG_CHECK_MODULES(LIBCDDB, libcddb >= 0.9.5, [ PKG_CHECK_MODULES(LIBCDDB, libcddb >= 0.9.5, [
...@@ -1673,35 +1681,47 @@ then ...@@ -1673,35 +1681,47 @@ then
fi fi
AC_ARG_ENABLE(vcdx,
[ --enable-vcdx VCD with Navigation via libvcdinfo (default disabled)])
if test "${enable_vcdx}" = "yes" if test "${enable_vcdx}" = "yes"
then then
PKG_CHECK_MODULES(LIBCDIO, libcdio >= 0.72, if test "${have_libvcdinfo}" = "yes"
[VLC_ADD_LDFLAGS([vcdx],[$LIBCDIO_LIBS]) then
VLC_ADD_CFLAGS([vcdx],[$LIBCDIO_CFLAGS])], VLC_ADD_LDFLAGS([vcdx],[$VCDINFO_LIBS])
[AC_MSG_WARN(libcdio library not found) VLC_ADD_CFLAGS([vcdx],[$VCDINFO_CFLAGS])
HAVE_VCDX=no]) else
AC_MSG_WARN([vcdx plugin disabled because ok libvcdinfo library not found or disabled])
HAVE_VCDX=no
fi
PKG_CHECK_MODULES(LIBCDIO, libiso9660 >= 0.72, PKG_CHECK_MODULES(LIBCDIO, libiso9660 >= 0.72,
[VLC_ADD_LDFLAGS([vcdx],[$LIBISO9660_LIBS]) [VLC_ADD_LDFLAGS([vcdx],[$LIBISO9660_LIBS])
VLC_ADD_CFLAGS([vcdx],[$LIBISO9660_CFLAGS])], VLC_ADD_CFLAGS([vcdx],[$LIBISO9660_CFLAGS])],
[AC_MSG_WARN(libiso9660 library not found) [AC_MSG_WARN([vcdx plugin disabled because ok libiso9660 library not found])
HAVE_VCDX=no]) HAVE_VCDX=no])
PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.21, if test "$have_libvcdinfo" = "yes"
[AC_DEFINE(HAVE_VCDX, [], then
AC_DEFINE(HAVE_VCDX, [],
[Define for the VCD plugin using libcdio/libvcdinfo]) [Define for the VCD plugin using libcdio/libvcdinfo])
VLC_ADD_LDFLAGS([vcdx],[$VCDINFO_LIBS]) VLC_ADD_LDFLAGS([vcdx],[$VCDINFO_LIBS])
VLC_ADD_CFLAGS([vcdx],[$VCDINFO_CFLAGS]) VLC_ADD_CFLAGS([vcdx],[$VCDINFO_CFLAGS])
VLC_ADD_PLUGINS([vcdx])], VLC_ADD_PLUGINS([vcdx])
[AC_MSG_WARN(vcdinfo library not found) else
HAVE_VCDX=no]) AC_MSG_WARN([vcdx plugin disabled because ok libvcdinfo library not found])
HAVE_VCDX=no
fi
fi fi
dnl dnl
dnl VCD module dnl Built-in CDDA and VCD module
dnl dnl
AC_ARG_ENABLE(cdda,
[ --enable-cdda audio CD via builtin VCD (default enabled)])
AC_ARG_ENABLE(vcd, AC_ARG_ENABLE(vcd,
[ --enable-vcd VCD support for Linux, FreeBSD, MacOS X and Win32 (default enabled)]) [ --enable-vcd VCD (not via libcdio) for GNU/Linux, FreeBSD, MacOS X and Win32 (default enabled)])
if test "${enable_vcd}" != "no" if test "${enable_vcd}" != "no"
then then
...@@ -1752,7 +1772,7 @@ AC_ARG_ENABLE(satellite, ...@@ -1752,7 +1772,7 @@ AC_ARG_ENABLE(satellite,
[ if test "${enable_satellite}" = "yes" [ if test "${enable_satellite}" = "yes"
then then
AC_DEFINE(HAVE_SATELLITE, [], AC_DEFINE(HAVE_SATELLITE, [],
[Define for the VCD plugin using libcdio/libvcdinfo]) [Define for the satellite plugin])
VLC_ADD_PLUGINS([satellite]) VLC_ADD_PLUGINS([satellite])
fi]) fi])
...@@ -3645,15 +3665,23 @@ then ...@@ -3645,15 +3665,23 @@ then
if test "${ac_cv_cxx_fpermissive}" = "yes"; then if test "${ac_cv_cxx_fpermissive}" = "yes"; then
VLC_ADD_CXXFLAGS([wxwindows],-fpermissive) VLC_ADD_CXXFLAGS([wxwindows],-fpermissive)
fi fi
PKG_CHECK_MODULES(LIBCDIO, libcdio >= 0.71, VLC_ADD_LDFLAGS([wxwindows],[`${WX_CONFIG} --libs`])
[ VLC_ADD_CXXFLAGS([wxwindows],[`${WX_CONFIG} --cxxflags`])
AC_DEFINE(HAVE_LIBCDIO, [], [Define for the CD-DA plugin using libcdio]) if test "$have_libcdio" = "yes"
VLC_ADD_CXXFLAGS([wxwindows],[`${WX_CONFIG} --cxxflags` $LIBCDIO_CFLAGS]) then
VLC_ADD_LDFLAGS([wxwindows],[`${WX_CONFIG} --libs`] $LIBCDIO_LIBS)], VLC_ADD_LDFLAGS([wxwindows],[$LIBCDIO_LIBS])
[AC_MSG_WARN(libcdio library not found - Probe disc disabled) VLC_ADD_CXXFLAGS([wxwindows],[$LIBCDIO_CFLAGS])
VLC_ADD_CXXFLAGS([wxwindows],[`${WX_CONFIG} --cxxflags`]) else
VLC_ADD_LDFLAGS([wxwindows],[`${WX_CONFIG} --libs`]) AC_MSG_WARN([Probe disc disabled because ok libcdio library not found])
HAVE_LIBCDIO=no]) fi
if test "$have_libvcdinfo" = "yes"
then
VLC_ADD_LDFLAGS([wxwindows],[$VCDINFO_LIBS])
VLC_ADD_CXXFLAGS([wxwindows],[$VCDINFO_CFLAGS])
else
AC_MSG_WARN([VCD information on Probe disc disabled because ok libvcdinfo not found])
fi
# now look for the wxprec.h header # now look for the wxprec.h header
CPPFLAGS="${CPPFLAGS_save} ${CXXFLAGS_wxwindows}" CPPFLAGS="${CPPFLAGS_save} ${CXXFLAGS_wxwindows}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment