From 8f970a24d51ba1fadfbee14a3c78ea112cf91329 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Mon, 15 Jun 2026 13:56:07 -0500 Subject: [PATCH] configure: add pkg-config check for libtheora This allows libtheora to be found via pkg-config in addition to the existing approach. Signed-off-by: Hunter Kvalevog --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e67aa362ad..ceb11ac8d0 100755 --- a/configure +++ b/configure @@ -7472,7 +7472,8 @@ enabled libsvtav1 && require_pkg_config libsvtav1 "SvtAv1Enc >= 0.9.0" E enabled libsvtjpegxs && require_pkg_config libsvtjpegxs "SvtJpegxs >= 0.10.0" SvtJpegxsEnc.h svt_jpeg_xs_encoder_init enabled libtensorflow && require libtensorflow tensorflow/c/c_api.h TF_Version -ltensorflow enabled libtesseract && require_pkg_config libtesseract tesseract tesseract/capi.h TessBaseAPICreate -enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg +enabled libtheora && { check_pkg_config libtheora theoraenc theora/theoraenc.h th_info_init || + require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg; } enabled libtls && require_pkg_config libtls libtls tls.h tls_configure && { enabled gpl && ! enabled nonfree && die "ERROR: LibreSSL is incompatible with the gpl"; } enabled libtorch && check_cxxflags -std=c++17 && require_cxx libtorch torch/torch.h "torch::Tensor" -ltorch -lc10 -ltorch_cpu -lstdc++ -lpthread