Skip to content

Commit

Permalink
Add support for zlib during configure
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Jul 31, 2019
1 parent b26a703 commit b63f017
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion configure.ac
Expand Up @@ -83,7 +83,24 @@ if test x$jasper = xtrue; then
)
fi


# check if we want zlib support
AC_ARG_ENABLE([zlib],
[ --enable-zlib Enable zlib support for deflate compressed DNG files],
[case "${enableval}" in
yes) zlib=true ;;
no) zlib=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-zlib]) ;;
esac],[zlib=true])

if test x$zlib = xtrue; then
PKG_CHECK_MODULES([ZLIB],[zlib],[
CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS -DUSE_ZLIB"
LIBS="$LIBS $ZLIB_LIBS"
AC_SUBST([PACKAGE_REQUIRES],[zlib])
],
AC_MSG_WARN([zlib support cannot be enabled])
)
fi

# check if we want LCMS support
AC_ARG_ENABLE([lcms],
Expand Down

0 comments on commit b63f017

Please sign in to comment.