Commit dd09caa5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

configure.ac: Fallback to jpeglib.h detection when no .pc is provided

parent 499eae6a
...@@ -302,6 +302,12 @@ PKG_CHECK_MODULES(SQLITE, sqlite3) ...@@ -302,6 +302,12 @@ PKG_CHECK_MODULES(SQLITE, sqlite3)
PKG_CHECK_MODULES(LIBJPEG, libjpeg, [ PKG_CHECK_MODULES(LIBJPEG, libjpeg, [
have_libjpeg="yes" have_libjpeg="yes"
AC_DEFINE(HAVE_JPEG, 1, [Define to 1 if libjpeg is available]) AC_DEFINE(HAVE_JPEG, 1, [Define to 1 if libjpeg is available])
], [
dnl Falling back to libjpeg.h based detection
AC_CHECK_HEADERS(jpeglib.h, [
have_libjpeg="yes"
AC_SUBST(LIBJPEG_LIBS, "-ljpeg")
])
]) ])
AM_CONDITIONAL([HAVE_LIBJPEG], [test "${have_libjpeg}" = "yes"]) AM_CONDITIONAL([HAVE_LIBJPEG], [test "${have_libjpeg}" = "yes"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment