Skip to content

Commit

Permalink
configure: Don't complain about the libcec version if it isn't instal…
Browse files Browse the repository at this point in the history
…led.

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.
  • Loading branch information
Paul Harrison committed Dec 28, 2011
1 parent 0d48b69 commit b1edf24
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mythtv/configure
Expand Up @@ -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" <<EOF || { echolog "libCEC support needs libcec >= 1" && disable libcec; }
if ! check_header ${libcec_path}/libcec/cec.h; then
disable libcec;
fi

if enabled libcec ; then
check_cxx -I"$libcec_path" <<EOF || { echolog "libCEC support needs libcec >= 1" && disable libcec; }
#include <libcec/cec.h>
#include <iostream>
using namespace std;
Expand All @@ -4131,6 +4136,7 @@ int main(void) {
return (long) LoadLibCec;
}
EOF
fi

if enabled libxml2 ; then
if pkg-config --exists libxml-2.0 ; then
Expand Down

0 comments on commit b1edf24

Please sign in to comment.