0001-use-a-function-instead-of-a-macro-for-jpeg-detection.patch 788 B

1234567891011121314151617181920212223242526272829
  1. From 3547055ba135dc1d8aacea68f16456aabb8c0a91 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Fri, 23 Aug 2024 06:11:43 +0200
  4. Subject: [PATCH] use a function instead of a macro for jpeg detection
  5. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  6. Upstream: https://github.com/amadvance/fbv/pull/1
  7. ---
  8. configure.ac | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index 3fa4666..fc65903 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -28,8 +28,8 @@ AC_SEARCH_LIBS([png_create_read_struct], [png], [
  15. ]
  16. )
  17. -AC_SEARCH_LIBS([jpeg_create_decompress], [jpeg], [
  18. - LIBS="-ljpeg"
  19. +AC_SEARCH_LIBS([jpeg_start_decompress], [jpeg], [
  20. + LIBS="$LIBS -ljpeg"
  21. CFLAGS="$CFLAGS -DFBV_SUPPORT_JPEG"
  22. ], [
  23. ]
  24. --
  25. 2.39.2