1 Star 0 Fork 12

dongfh321/libraw

forked from openKylin/libraw 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
configure.ac 3.46 KB
一键复制 编辑 原始数据 按行查看 历史
LLL 提交于 2022-06-27 14:42 . Import Upstream version 0.19.5
# Initialization
AC_INIT([LibRaw], m4_esyscmd([./version.sh]), [info@libraw.org], [], [http://www.libraw.org])
AM_INIT_AUTOMAKE([foreign no-define])
#AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
# Tools to use
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LIBTOOL
AC_ENABLE_SHARED
AC_ENABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_SETUP
AC_SUBST(LIBTOOL_DEPS)
# Config files to generate
AC_CONFIG_FILES([
Makefile
libraw.pc
libraw_r.pc
])
# check if we want OpenMP support
AC_ARG_ENABLE([openmp],
[ --enable-openmp Enable OpenMP support],
[case "${enableval}" in
yes) openmp=true ;;
no) openmp=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-openmp]) ;;
esac],[openmp=true])
if test x$openmp = xtrue ; then
AX_OPENMP([
CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS"
CFLAGS="$CFLAGS $OPENMP_CFLAGS"
AC_SUBST([PC_OPENMP],[" $OPENMP_CFLAGS"])
],[
AC_MSG_WARN([OpenMP support cannot be enabled because your system doesn't support it.])
])
fi
# check for libjpeg v8
AC_ARG_ENABLE([jpeg],
[ --enable-jpeg Enable JPEG support for Lossy compressed DNG files],
[case "${enableval}" in
yes) jpeg=true ;;
no) jpeg=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-jpeg]) ;;
esac],[jpeg=true])
if test x$jpeg = xtrue; then
AC_CHECK_LIB([jpeg], [jpeg_mem_src],
[
AC_CHECK_HEADERS([jpeglib.h], [
CPPFLAGS="$CPPFLAGS -DUSE_JPEG -DUSE_JPEG8"
LIBS="$LIBS -ljpeg"
], AC_MSG_WARN([no jpeg headers found]))
],
AC_MSG_WARN([libjpeg not found])
)
fi
# check for Jasper (JPEG2000) support
AC_ARG_ENABLE([jasper],
[ --enable-jasper Enable Jasper (JPEG2000) support for RedCine files],
[case "${enableval}" in
yes) jasper=true ;;
no) jasper=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-jasper]) ;;
esac],[jasper=true])
if test x$jasper = xtrue; then
AC_CHECK_LIB([jasper], [jas_init],
[
AC_CHECK_HEADERS([jasper/jasper.h], [
CPPFLAGS="$CPPFLAGS -DUSE_JASPER"
LIBS="$LIBS -ljasper"
], AC_MSG_WARN([no jasper headers found]))
],
AC_MSG_WARN([libjasper not found])
)
fi
# check if we want LCMS support
AC_ARG_ENABLE([lcms],
[ --enable-lcms Enable LCMS support],
[case "${enableval}" in
yes) lcms=true ;;
no) lcms=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-lcms]) ;;
esac],[lcms=true])
if test x$lcms = xtrue; then
PKG_CHECK_MODULES([LCMS2],[lcms2],[
CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS -DUSE_LCMS2"
LIBS="$LIBS $LCMS2_LIBS"
AC_SUBST([PACKAGE_REQUIRES],[lcms2])
],[
PKG_CHECK_MODULES([LCMS],[lcms],[
CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS -DUSE_LCMS"
LIBS="$LIBS $LCMS_LIBS"
AC_SUBST([PACKAGE_REQUIRES],[lcms])
],[
AC_MSG_WARN([LCMS support cannot be enabled])
])
])
fi
# check if we want build examples
AC_ARG_ENABLE([examples],
[ --enable-examples Enable building of examples],
[case "${enableval}" in
yes) examples=true ;;
no) examples=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-examples]) ;;
esac],[examples=true])
AM_CONDITIONAL([EXAMPLES], [test x$examples = xtrue])
LIBS="$LIBS -lm"
AC_SUBST([LIBRAW_SHLIB_VERSION],m4_esyscmd([./shlib-version.sh]))
AC_SUBST([LIBRAW_RELEASE_VERSION],m4_esyscmd([./version.sh]))
AC_OUTPUT
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dongfh321/libraw.git
git@gitee.com:dongfh321/libraw.git
dongfh321
libraw
libraw
openkylin/yangtze

搜索帮助