From b1edf24a1f017f5c38c422b3c17ac5d6f91df49b Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Wed, 28 Dec 2011 13:46:26 +0000 Subject: [PATCH] configure: Don't complain about the libcec version if it isn't installed. Not sure I've got the header path correct there seems to be one too many libcec directories in there but it does seem to match the existing check. --- mythtv/configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mythtv/configure b/mythtv/configure index b64214b7489..eb13f46e7f3 100755 --- a/mythtv/configure +++ b/mythtv/configure @@ -4119,7 +4119,12 @@ enabled libfftw3 && check_lib2 fftw3.h fftw_init_threads -lfftw3_threads -lfftw3 # ass_flush_events was added in 0.9.10 enabled libass && check_lib2 ass/ass.h ass_flush_events -lass || disable libass -enabled libcec && check_cxx -I"$libcec_path" <= 1" && disable libcec; } +if ! check_header ${libcec_path}/libcec/cec.h; then + disable libcec; +fi + +if enabled libcec ; then + check_cxx -I"$libcec_path" <= 1" && disable libcec; } #include #include using namespace std; @@ -4131,6 +4136,7 @@ int main(void) { return (long) LoadLibCec; } EOF +fi if enabled libxml2 ; then if pkg-config --exists libxml-2.0 ; then