Annotation of embedaddon/php/ext/gd/config.w32, revision 1.1.1.3

1.1.1.2   misho       1: // $Id$
1.1       misho       2: // vim:ft=javascript
                      3: 
                      4: ARG_WITH("gd", "Bundled GD support", "yes,shared");
                      5: ARG_WITH("t1lib", "t1lib support", "yes");
                      6: 
                      7: if (PHP_GD != "no") {
1.1.1.2   misho       8:        if (
                      9:                CHECK_LIB("vpxmt.lib", "gd", PHP_GD) &&
                     10:                CHECK_LIB("libjpeg_a.lib;libjpeg.lib", "gd", PHP_GD) &&
1.1       misho      11:                CHECK_LIB("freetype_a.lib;freetype.lib", "gd", PHP_GD) &&
                     12:                CHECK_LIB("libpng_a.lib;libpng.lib", "gd", PHP_GD) &&
                     13:                CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd") &&
                     14:                CHECK_HEADER_ADD_INCLUDE("png.h", "CFLAGS_GD", PHP_GD +  ";" + PHP_PHP_BUILD + "\\include\\libpng12") &&
                     15:                (CHECK_LIB("libiconv_a.lib;libiconv.lib", "gd", PHP_GD) || CHECK_LIB("iconv_a.lib;iconv.lib", "gd", PHP_GD)) &&
                     16:                 CHECK_HEADER_ADD_INCLUDE("iconv.h", "CFLAGS_GD", PHP_GD) && 
                     17:                (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "gd", PHP_GD) )) || 
1.1.1.3 ! misho      18:                        (PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "gd", PHP_GD)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED))) &&
        !            19:                CHECK_LIB("libXpm_a.lib", "gd", PHP_GD) &&
        !            20:                CHECK_HEADER_ADD_INCLUDE("xpm.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\X11")
1.1       misho      21:                ) {
                     22:                if (PHP_T1LIB != "no") {
                     23:                        if (CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) &&
                     24:                                CHECK_HEADER_ADD_INCLUDE("t1lib.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\t1lib")
                     25:                                ) {
                     26:                                ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBT1");
                     27:                                } else {
                     28:                                WARNING("t1lib not enabled; libraries and headers not found");
                     29:                        }
                     30:                }
                     31: 
                     32:                CHECK_LIB("User32.lib", "gd", PHP_GD);
                     33:                CHECK_LIB("Gdi32.lib", "gd", PHP_GD);
                     34: 
                     35:                EXTENSION("gd", "gd.c", null, "-Iext/gd/libgd", "php_gd2.dll");
                     36:                ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd_arc_f_buggy.c gd.c \
                     37:                        gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c \
                     38:                        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 \
                     39:                        gd_io_file.c gd_io_ss.c gd_jpeg.c gdkanji.c gd_png.c gd_ss.c \
                     40:                        gdtables.c gd_topal.c gd_wbmp.c gdxpm.c wbmp.c xbm.c gd_security.c \
1.1.1.2   misho      41:                        gd_filter.c gd_pixelate.c gd_arc.c gd_rotate.c gd_color.c webpimg.c gd_webp.c ", "gd");
1.1       misho      42:                AC_DEFINE('HAVE_LIBGD', 1, 'GD support');
                     43:                ADD_FLAG("CFLAGS_GD", " \
                     44: /D HAVE_GD_DYNAMIC_CTX_EX=1 \
                     45: /D HAVE_GD_BUNDLED=1  \
                     46: /D HAVE_GD_GD2  \
                     47: /D HAVE_GD_GIF_READ=1  \
                     48: /D HAVE_GD_GIF_CREATE=1  \
                     49: /D HAVE_GDIMAGECOLORRESOLVE=1  \
                     50: /D HAVE_GD_IMAGESETBRUSH=1  \
                     51: /D HAVE_GD_IMAGESETTILE=1 \
                     52: /D HAVE_GD_FONTCACHESHUTDOWN=1 \
                     53: /D HAVE_GD_FONTMUTEX=1 \
                     54: /D HAVE_LIBFREETYPE=1 \
                     55: /D HAVE_GD_JPG  \
                     56: /D HAVE_GD_PNG  \
                     57: /D HAVE_GD_STRINGFTEX=1  \
                     58: /D HAVE_GD_STRINGTTF=1  \
                     59: /D HAVE_GD_WBMP  \
                     60: /D HAVE_GD_XBM  \
1.1.1.3 ! misho      61: /D HAVE_GD_XPM  \
1.1.1.2   misho      62: /D HAVE_GD_WEBP \
1.1       misho      63: /D HAVE_LIBFREETYPE=1  \
                     64: /D HAVE_LIBGD13=1  \
                     65: /D HAVE_LIBGD15=1  \
                     66: /D HAVE_LIBGD20=1  \
                     67: /D HAVE_LIBGD204=1 \
                     68: /D HAVE_LIBJPEG  \
1.1.1.2   misho      69: /D HAVE_LIBVPX \
1.1       misho      70: /D HAVE_LIBPNG  \
1.1.1.3 ! misho      71: /D HAVE_XPM  \
1.1       misho      72: /D HAVE_COLORCLOSESTHWB  \
                     73: /D USE_GD_IMGSTRTTF  \
                     74: /D USE_GD_IOCTX \
                     75: /D MSWIN32 \
                     76:                ");
                     77:                
                     78:                PHP_INSTALL_HEADERS("", "ext/gd ext/gd/libgd" );
                     79:                } else {
                     80:                WARNING("gd not enabled; libraries and headers not found");
                     81:        }
                     82: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>