diff options
author | theuni <theuni-nospam@xbmc.org> | 2013-01-20 20:16:29 -0500 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2013-03-11 00:23:15 -0400 |
commit | 88baf88d948314fd0c6a75975193cec2b737f7ae (patch) | |
tree | d37f9a0e4984961ba863b6da4cc7dd12ea0ca525 /configure.in | |
parent | bab3cde75d25953433d40c302ec35ddf76937919 (diff) |
depends: don't link libcdio unless optical is enabled
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 1e95902131..d59bbd2740 100644 --- a/configure.in +++ b/configure.in @@ -1030,9 +1030,6 @@ PKG_CHECK_MODULES([PCRE], [libpcre], [INCLUDES="$INCLUDES $PCRE_CFLAGS"; LIBS="$LIBS $PCRE_LIBS"]; \ AC_DEFINE([HAVE_LIBPCRE],[1],["Define to 1 if libpcre is installed"]), AC_MSG_ERROR($missing_library)) -PKG_CHECK_MODULES([CDIO], [libcdio], - [INCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS"], - AC_MSG_ERROR($missing_library)) PKG_CHECK_MODULES([SAMPLERATE], [samplerate], [INCLUDES="$INCLUDES $SAMPLERATE_CFLAGS"; LIBS="$LIBS $SAMPLERATE_LIBS"], AC_MSG_ERROR($missing_library)) @@ -1043,6 +1040,12 @@ PKG_CHECK_MODULES([TAGLIB], [taglib >= 1.8], [INCLUDES="$INCLUDES $TAGLIB_CFLAGS"; LIBS="$LIBS $TAGLIB_LIBS"], AC_MSG_ERROR($missing_library)) +if test "$use_optical_drive" = "yes"; then + PKG_CHECK_MODULES([CDIO], [libcdio], + [INCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS"], + AC_MSG_ERROR($missing_library)) +fi + if test "$target_platform" = "target_android" ; then PKG_CHECK_MODULES([ZIP], [libzip], [INCLUDES="$INCLUDES $ZIP_CFLAGS"; LIBS="$LIBS $ZIP_LIBS"], |