Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 4e0c62634b0db6dbad0d41377bb71a8012abd75b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 1 Sep 2022 12:56:54 -0700 |
| 4 | Subject: [PATCH] configure: Fix checks for libjpeg and libexif |
| 5 | |
| 6 | Use the functions from the respective library instead of using main |
| 7 | function which is not part of library |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/mattes/epeg/pull/27] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | configure.ac | 4 ++-- |
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/configure.ac b/configure.ac |
| 16 | index a4f6ebd..e474b1d 100644 |
| 17 | --- a/configure.ac |
| 18 | +++ b/configure.ac |
| 19 | @@ -31,8 +31,8 @@ AC_SUBST(version_info) |
| 20 | dnl AC_CHECK_FUNCS(fmemopen) |
| 21 | dnl AC_CHECK_FUNCS(open_memstream) |
| 22 | |
| 23 | -AC_CHECK_LIB([jpeg], [main], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1]) |
| 24 | -AC_CHECK_LIB([exif], [main], [], [echo "libexif library not found. Please install it before proceeding"; exit -1]) |
| 25 | +AC_CHECK_LIB([jpeg], [jpeg_simple_progression], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1]) |
| 26 | +AC_CHECK_LIB([exif], [exif_data_new_from_file], [], [echo "libexif library not found. Please install it before proceeding"; exit -1]) |
| 27 | |
| 28 | my_includes="" |
| 29 | my_libs="-ljpeg -lexif" |
| 30 | -- |
| 31 | 2.37.3 |
| 32 | |