📄 configure.ac
字号:
if test "x$with_zlib_lib_dir" != "x" ; then LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" fi AC_CHECK_LIB(z, inflateEnd, [zlib_lib=yes], [zlib_lib=no],) if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then AC_MSG_ERROR([Zlib library not found at $with_zlib_lib_dir]) fi if test "x$with_zlib_include_dir" != "x" ; then CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" fi AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no]) if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then AC_MSG_ERROR([Zlib headers not found at $with_zlib_include_dir]) fi if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then HAVE_ZLIB=yes fifiif test "$HAVE_ZLIB" = "yes" ; then AC_DEFINE(ZIP_SUPPORT,1,[Support Deflate compression]) LIBS="-lz $LIBS" if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then LIBDIR="-R $with_zlib_lib_dir $LIBDIR" fifidnl ---------------------------------------------------------------------------dnl Check for Pixar log-format algorithm.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(pixarlog, AS_HELP_STRING([--disable-pixarlog], [disable support for Pixar log-format algorithm (requires Zlib)]), [HAVE_PIXARLOG=$enableval], [HAVE_PIXARLOG=yes])if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then AC_DEFINE(PIXARLOG_SUPPORT, 1, [Support Pixar log-format algorithm (requires Zlib)])else HAVE_PIXARLOG=nofidnl ---------------------------------------------------------------------------dnl Check for JPEG.dnl ---------------------------------------------------------------------------HAVE_JPEG=noAC_ARG_ENABLE(jpeg, AS_HELP_STRING([--disable-jpeg], [disable IJG JPEG library usage (required for JPEG compression, enabled by default)]),,)AC_ARG_WITH(jpeg-include-dir, AS_HELP_STRING([--with-jpeg-include-dir=DIR], [location of IJG JPEG library headers]),,)AC_ARG_WITH(jpeg-lib-dir, AS_HELP_STRING([--with-jpeg-lib-dir=DIR], [location of IJG JPEG library binary]),,)if test "x$enable_jpeg" != "xno" ; then if test "x$with_jpeg_lib_dir" != "x" ; then LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" fi AC_CHECK_LIB(jpeg, jpeg_read_scanlines, [jpeg_lib=yes], [jpeg_lib=no],) if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then AC_MSG_ERROR([IJG JPEG library not found at $with_jpeg_lib_dir]) fi if test "x$with_jpeg_include_dir" != "x" ; then CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" fi AC_CHECK_HEADER(jpeglib.h, [jpeg_h=yes], [jpeg_h=no]) if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then AC_MSG_ERROR([IJG JPEG library headers not found at $with_jpeg_include_dir]) fi if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then HAVE_JPEG=yes fifiif test "$HAVE_JPEG" = "yes" ; then AC_DEFINE(JPEG_SUPPORT,1,[Support JPEG compression (requires IJG JPEG library)]) LIBS="-ljpeg $LIBS" if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" fifidnl ---------------------------------------------------------------------------dnl Check for Old JPEG.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(old-jpeg, AS_HELP_STRING([--enable-old-jpeg], [enable support for Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library)]), [HAVE_OJPEG=$enableval], [HAVE_OJPEG=no])if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then AC_DEFINE(OJPEG_SUPPORT, 1, [Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library)])else HAVE_OJPEG=nofidnl ---------------------------------------------------------------------------dnl Check for C++.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(cxx, AS_HELP_STRING([--enable-cxx], [enable C++ stream API building (requires C++ compiler)]), [HAVE_CXX=$enableval], [HAVE_CXX=yes])if test "$HAVE_CXX" = "yes" ; then AC_DEFINE(CXX_SUPPORT, 1, [Support C++ stream API (requires C++ compiler)])else HAVE_CXX=nofiAM_CONDITIONAL(HAVE_CXX, test "$HAVE_CXX" = "yes")dnl ---------------------------------------------------------------------------dnl Check for OpenGL and GLUT.dnl ---------------------------------------------------------------------------HAVE_OPENGL=noAC_PATH_XTRAAX_CHECK_GLAX_CHECK_GLUAX_CHECK_GLUTif test "$no_x" != "yes" -a "$no_gl" != "yes" \ -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then HAVE_OPENGL=yesfiAM_CONDITIONAL(HAVE_OPENGL, test "$HAVE_OPENGL" = "yes")dnl ===========================================================================dnl ``Orthogonal Features''dnl ===========================================================================dnl ---------------------------------------------------------------------------dnl Default handling of strip chopping support.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(strip-chopping, AS_HELP_STRING([--disable-strip-chopping], [disable support for strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]), [HAVE_STRIPCHOP=$enableval], [HAVE_STRIPCHOP=yes])AC_ARG_WITH(default-strip-size, AS_HELP_STRING([--with-default-strip-size=SIZE], [default size of the strip in bytes (when strip chopping enabled) [[default=8192]]]),,)if test "$HAVE_STRIPCHOP" = "yes" \ -a "x$with_default_strip_size" != "xno"; then AC_DEFINE(STRIPCHOP_DEFAULT,TIFF_STRIPCHOP,[Support strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]) if test "x$with_default_strip_size" = "x" \ -o "x$with_default_strip_size" = "xyes"; then with_default_strip_size="8192" fi AC_DEFINE_UNQUOTED(STRIP_SIZE_DEFAULT,$with_default_strip_size,[Default size of the strip in bytes (when strip chopping enabled)])fidnl ---------------------------------------------------------------------------dnl Default subifd support.dnl ---------------------------------------------------------------------------AC_DEFINE(SUBIFD_SUPPORT,1,[Enable SubIFD tag (330) support])dnl ---------------------------------------------------------------------------dnl Default handling of ASSOCALPHA support.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(extrasample-as-alpha, AS_HELP_STRING([--disable-extrasample-as-alpha], [the RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly]), [HAVE_EXTRASAMPLE_AS_ALPHA=$enableval], [HAVE_EXTRASAMPLE_AS_ALPHA=yes])if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then AC_DEFINE(DEFAULT_EXTRASAMPLE_AS_ALPHA, 1, [Treat extra sample as alpha (default enabled). The RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly.])fidnl ---------------------------------------------------------------------------dnl Default handling of YCbCr subsampling support.dnl See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.dnl ---------------------------------------------------------------------------AC_ARG_ENABLE(check-ycbcr-subsampling, AS_HELP_STRING([--disable-check-ycbcr-subsampling], [disable picking up YCbCr subsampling info from the JPEG data stream to support files lacking the tag]), [CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval], [CHECK_JPEG_YCBCR_SUBSAMPLING=yes])if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then AC_DEFINE(CHECK_JPEG_YCBCR_SUBSAMPLING, 1, [Pick up YCbCr subsampling info from the JPEG data stream to support files lacking the tag (default enabled).])fidnl ---------------------------------------------------------------------------AC_SUBST(LIBDIR)AC_CONFIG_HEADERS([libtiff/tif_config.h libtiff/tiffconf.h])AC_CONFIG_FILES([Makefile \ contrib/Makefile \ contrib/acorn/Makefile \ contrib/addtiffo/Makefile \ contrib/dbs/Makefile \ contrib/dbs/xtiff/Makefile \ contrib/iptcutil/Makefile \ contrib/mac-cw/Makefile \ contrib/mac-mpw/Makefile \ contrib/mfs/Makefile \ contrib/ojpeg/Makefile \ contrib/pds/Makefile \ contrib/ras/Makefile \ contrib/stream/Makefile \ contrib/tags/Makefile \ contrib/win_dib/Makefile \ html/Makefile \ html/images/Makefile \ html/man/Makefile \ libtiff/Makefile \ man/Makefile \ port/Makefile \ test/Makefile \ tools/Makefile])AC_OUTPUTdnl ---------------------------------------------------------------------------dnl Display configuration statusdnl ---------------------------------------------------------------------------LOC_MSG()LOC_MSG([Libtiff is now configured for ${host}])LOC_MSG()LOC_MSG([ Installation directory: ${prefix}])LOC_MSG([ Documentation directory: ${LIBTIFF_DOCDIR}])LOC_MSG([ C compiler: ${CC} ${CFLAGS}])LOC_MSG([ C++ compiler: ${CXX} ${CXXFLAGS}])LOC_MSG([ Enable runtime linker paths: ${HAVE_RPATH}])LOC_MSG([ Support Microsoft Document Imaging: ${HAVE_MDI}])LOC_MSG()LOC_MSG([ Support for internal codecs:])LOC_MSG([ CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}])LOC_MSG([ Macintosh PackBits algorithm: ${HAVE_PACKBITS}])LOC_MSG([ LZW algorithm: ${HAVE_LZW}])LOC_MSG([ ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}])LOC_MSG([ NeXT 2-bit RLE algorithm: ${HAVE_NEXT}])LOC_MSG([ LogLuv high dynamic range encoding: ${HAVE_LOGLUV}])LOC_MSG()LOC_MSG([ Support for external codecs:])LOC_MSG([ ZLIB support: ${HAVE_ZLIB}])LOC_MSG([ Pixar log-format algorithm: ${HAVE_PIXARLOG}])LOC_MSG([ JPEG support: ${HAVE_JPEG}])LOC_MSG([ Old JPEG support: ${HAVE_OJPEG}])LOC_MSG()LOC_MSG([ C++ support: ${HAVE_CXX}])LOC_MSG()LOC_MSG([ OpenGL support: ${HAVE_OPENGL}])LOC_MSG()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -