add tiff to autoconf build scripts
parent
35649d41ba
commit
c2711be4c9
26
configure.ac
26
configure.ac
|
@ -301,6 +301,31 @@ else
|
|||
ac_cv_lib_vpx_vpx_codec_destroy=no
|
||||
fi
|
||||
|
||||
|
||||
dnl check for libvpx by default
|
||||
AC_ARG_WITH(tiff,dnl
|
||||
[ --with-tiff=DIR where to find the tiff library],
|
||||
[if test -d "$withval"; then
|
||||
LDFLAGS="$LDFLAGS -L$withval/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
||||
fi],
|
||||
withval=yes)
|
||||
|
||||
if test "$withval" != no; then
|
||||
AC_CHECK_LIB(tiff,TIFFClientOpen,
|
||||
[LIBS="-ltiff $LIBS"
|
||||
FEATURES="GD_VPX $FEATURES"
|
||||
AC_DEFINE(HAVE_LIBTIFF, 1, [ Define if you have the vpx library. ])])
|
||||
else
|
||||
ac_cv_lib_tiff_TIFFClientOpen=no
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ACX_PTHREAD()
|
||||
|
||||
dnl report configuration
|
||||
|
@ -310,6 +335,7 @@ AC_MSG_RESULT([
|
|||
Support for PNG library: $ac_cv_lib_png_png_create_read_struct
|
||||
Support for JPEG library: $ac_cv_lib_jpeg_jpeg_set_defaults
|
||||
Support for VPX library: $ac_cv_lib_vpx_vpx_codec_destroy
|
||||
Support for VPX library: $ac_cv_lib_tiff_TIFFClientOpen
|
||||
Support for Freetype 2.x library: $ac_cv_lib_freetype_FT_Init_FreeType
|
||||
Support for Fontconfig library: $ac_cv_lib_fontconfig_FcInit
|
||||
Support for Xpm library: $ac_cv_lib_Xpm_XpmReadFileToXpmImage
|
||||
|
|
|
@ -11,7 +11,7 @@ include_HEADERS = gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h g
|
|||
|
||||
lib_LTLIBRARIES = libgd.la
|
||||
|
||||
libgd_la_SOURCES = gd.c gd_color.c gd_color_map.c gd_transform.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_gif_in.c gd_gif_out.c gd_io_file.c gd_io_ss.c gd_jpeg.c gd_png.c gd_ss.c gd_topal.c gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c gdft.c gdhelpers.c gdhelpers.h gdkanji.c gdtables.c gdxpm.c jisx0208.h wbmp.c wbmp.h gd_filter.c gd_nnquant.c gd_rotate.c gd_matrix.c gd_interpolation.c gd_crop.c webpimg.c gd_webp.c
|
||||
libgd_la_SOURCES = gd.c gd_color.c gd_color_map.c gd_transform.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_gif_in.c gd_gif_out.c gd_io_file.c gd_io_ss.c gd_jpeg.c gd_png.c gd_ss.c gd_topal.c gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c gdft.c gdhelpers.c gdhelpers.h gdkanji.c gdtables.c gdxpm.c jisx0208.h wbmp.c wbmp.h gd_filter.c gd_nnquant.c gd_rotate.c gd_matrix.c gd_interpolation.c gd_crop.c webpimg.c gd_webp.c gd_tiff.c
|
||||
|
||||
libgd_la_LDFLAGS = -version-info 2:0:0 $(XTRA_LDFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue