]> granicus.if.org Git - php/commitdiff
improve temporary fix for system libgd
authorRemi Collet <remi@php.net>
Mon, 22 Jul 2019 07:11:32 +0000 (09:11 +0200)
committerRemi Collet <remi@php.net>
Mon, 22 Jul 2019 07:11:32 +0000 (09:11 +0200)
- PHP_GD_PNG needed to set include path for png.h
- PHP_GD_JPEG needed to set include path for jpeglib.h

ext/gd/config.m4

index 662a9c8c2e69b3cac96bc4f01adacb4cf16ea086..8271eb27b115964e744677ea4ec313f6799fee9f 100644 (file)
@@ -177,7 +177,13 @@ dnl Various checks for GD features
     ], [ $GD_SHARED_LIBADD ], [char foobar () {}])
 
   else
+    dnl for png.h in gd_compat (PNG_LIBPNG_VER_STRING)
+    PHP_GD_PNG
+    dnl for jpeglib.h in gd_compat (JPEG_LIB_VERSION)
+    PHP_GD_JPEG
+    dnl for X11/xpm.h in gd.c (XpmLibraryVersion)
     PHP_GD_XPM
+    dnl for ft2build.h in gd.c (FREETYPE_MAJOR...)
     PHP_GD_FREETYPE2
 
     extra_sources="gd_compat.c"