From 67ff4de3950daabcb0c4e14d273bb51075487285 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 13 Jun 2022 16:27:08 -0700 Subject: [PATCH] configure: Fix libzbc detection on SUSE Linux The path of the libzbc header file is /usr/include/libzbc/libzbc/zbc.h instead of /usr/include/libzbc/zbc.h on SUSE Linux systems. Add support for the SUSE libzbc include path. Signed-off-by: Bart Van Assche --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 110b4f30..510af424 100755 --- a/configure +++ b/configure @@ -2578,6 +2578,10 @@ int main(int argc, char **argv) } EOF if test "$libzbc" != "no" ; then + if [ -e /usr/include/libzbc/libzbc ]; then + # SUSE Linux. + CFLAGS="$CFLAGS -I/usr/include/libzbc" + fi if compile_prog "" "-lzbc" "libzbc"; then libzbc="yes" if ! check_min_lib_version libzbc 5; then -- 2.25.1