2003-12-07 09:59:28 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
2004-01-08 07:36:36 +08:00
|
|
|
ARG_WITH("gd", "Bundled GD support", "yes,shared");
|
2005-08-02 05:57:09 +08:00
|
|
|
ARG_WITH("t1lib", "t1lib support", "yes");
|
2003-12-07 09:59:28 +08:00
|
|
|
|
|
|
|
if (PHP_GD != "no") {
|
|
|
|
if (CHECK_LIB("libjpeg.lib", "gd", PHP_GD) &&
|
|
|
|
CHECK_LIB("freetype2.lib", "gd", PHP_GD) &&
|
|
|
|
CHECK_LIB("libpng.lib", "gd", PHP_GD) &&
|
2005-08-02 05:57:09 +08:00
|
|
|
CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd")
|
2005-04-25 17:08:48 +08:00
|
|
|
) {
|
2005-08-02 05:57:09 +08:00
|
|
|
if (PHP_T1LIB != "no") {
|
|
|
|
if (CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) &&
|
|
|
|
CHECK_HEADER_ADD_INCLUDE("t1lib.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\t1lib")
|
|
|
|
) {
|
|
|
|
ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBT1");
|
|
|
|
} else {
|
|
|
|
WARNING("t1lib not enabled; libraries and headers not found");
|
|
|
|
}
|
|
|
|
}
|
2003-12-07 09:59:28 +08:00
|
|
|
|
2005-08-07 06:20:06 +08:00
|
|
|
if (PHP_ZLIB == "no" || PHP_ZLIB_SHARED) {
|
|
|
|
CHECK_LIB("zlib.lib", "gd", PHP_GD);
|
|
|
|
}
|
|
|
|
|
2003-12-23 06:33:43 +08:00
|
|
|
EXTENSION("gd", "gd.c gdttf.c", null, "-Iext/gd/libgd", "php_gd2.dll");
|
2003-12-07 10:58:56 +08:00
|
|
|
ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd_arc_f_buggy.c gd.c \
|
|
|
|
gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c \
|
2004-07-23 06:38:59 +08:00
|
|
|
gdft.c gd_gd2.c gd_gd.c gd_gif_in.c gd_gif_out.c gdhelpers.c gd_io.c gd_io_dp.c \
|
2003-12-07 10:58:56 +08:00
|
|
|
gd_io_file.c gd_io_ss.c gd_jpeg.c gdkanji.c gd_png.c gd_ss.c \
|
2007-03-10 20:18:36 +08:00
|
|
|
gdtables.c gd_topal.c gd_wbmp.c gdxpm.c wbmp.c xbm.c gd_security.c", "gd");
|
2003-12-07 09:59:28 +08:00
|
|
|
AC_DEFINE('HAVE_LIBGD', 1, 'GD support');
|
|
|
|
ADD_FLAG("CFLAGS_GD", " \
|
2005-08-08 05:00:28 +08:00
|
|
|
/D HAVE_GD_DYNAMIC_CTX_EX=1 \
|
2003-12-07 10:58:56 +08:00
|
|
|
/D HAVE_GD_BUNDLED=1 \
|
|
|
|
/D HAVE_GD_GD2 \
|
|
|
|
/D HAVE_GD_GIF_READ=1 \
|
2004-07-23 06:38:59 +08:00
|
|
|
/D HAVE_GD_GIF_CREATE=1 \
|
2003-12-07 10:58:56 +08:00
|
|
|
/D HAVE_GDIMAGECOLORRESOLVE=1 \
|
|
|
|
/D HAVE_GD_IMAGESETBRUSH=1 \
|
|
|
|
/D HAVE_GD_IMAGESETTILE=1 \
|
2007-04-06 23:38:35 +08:00
|
|
|
/D HAVE_GD_FONTMUTEX=1 \
|
|
|
|
/D HAVE_LIBFREETYPE=1 \
|
2003-12-07 10:58:56 +08:00
|
|
|
/D HAVE_GD_JPG \
|
|
|
|
/D HAVE_GD_PNG \
|
|
|
|
/D HAVE_GD_STRINGFTEX=1 \
|
|
|
|
/D HAVE_GD_STRINGTTF=1 \
|
|
|
|
/D HAVE_GD_WBMP \
|
|
|
|
/D HAVE_GD_XBM \
|
|
|
|
/D HAVE_LIBFREETYPE=1 \
|
|
|
|
/D HAVE_LIBGD13=1 \
|
|
|
|
/D HAVE_LIBGD15=1 \
|
|
|
|
/D HAVE_LIBGD20=1 \
|
|
|
|
/D HAVE_LIBGD204=1 \
|
|
|
|
/D HAVE_LIBJPEG \
|
|
|
|
/D HAVE_LIBPNG \
|
|
|
|
/D USE_GD_IMGSTRTTF \
|
|
|
|
/D USE_GD_IOCTX \
|
|
|
|
/D MSWIN32 \
|
2003-12-07 09:59:28 +08:00
|
|
|
");
|
|
|
|
} else {
|
|
|
|
WARNING("gd not enabled; libraries and headers not found");
|
|
|
|
}
|
|
|
|
}
|