uhdr: fix language choice in autoconf (#7663)

While checking for uhdr delegate, cflags is set with uhdr_cflags but
language chosen is c++. This would fail AC_CHECK_HEADER(...). This is
corrected.

Test: Build
This commit is contained in:
ram 2024-10-03 03:19:52 +05:30 committed by GitHub
parent b719ad8d8e
commit d33ec12cab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2896,7 +2896,6 @@ if test "$with_uhdr" != 'no'; then
PKG_CHECK_MODULES([UHDR],[libuhdr >= 1.2.0],[have_uhdr=yes],[have_uhdr=no])
CFLAGS="$CFLAGS $UHDR_CFLAGS"
LIBS="$LIBS $UHDR_LIBS"
AC_LANG_PUSH([C++])
AC_CHECK_HEADER([ultrahdr_api.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`])
AC_CHECK_LIB([uhdr],[uhdr_create_decoder],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[])
@ -2916,7 +2915,6 @@ if test "$with_uhdr" != 'no'; then
else
AC_MSG_RESULT([no])
fi
AC_LANG_POP([C++])
fi
AM_CONDITIONAL([UHDR_DELEGATE],[test "$have_uhdr" = 'yes'])