summaryrefslogtreecommitdiff
path: root/ext/gd/config.m4
Commit message (Collapse)AuthorAgeFilesLines
* Add imagegetinterpolation()Christoph M. Becker2020-01-141-8/+9
| | | | | | | | | | | | | | | While `imagesetinterpolation()` is available as of PHP 5.5.0, there is no according getter function, so users would have to track the current interpolation method manually. To remedy this, we introduce `imagegetinterpolation()` as thin wrapper for `gdImageGetInterpolationMethod()` (which has been introduced with libgd 2.1.1), and use `im->interpolation_id` as fallback for older libgd. Since our bundled libgd does not yet have this function, we add it. We also simplify the recently introduced bug79068.phpt, where it is sufficient to check that the interpolation method has not been changed.
* cleanup gd build with system libgd - drop need to use libpng with system ↵Remi Collet2019-07-221-14/+5
| | | | libgd - drop need to use libjpeg with system libgd - drop need to use libXpm with system libgd - drop need to use libfreetype with system libgd - improve configure comments
* Drop superfluous ENABLE_GD_TTFChristoph M. Becker2019-07-221-1/+0
| | | | | | If we `HAVE_LIBFREETYPE`, we define `ENABLE_GD_TTF` if it is not defined. Therefore we can check for `HAVE_LIBFREETYPE` in the first place.
* improve temporary fix for system libgdRemi Collet2019-07-221-0/+6
| | | | | - PHP_GD_PNG needed to set include path for png.h - PHP_GD_JPEG needed to set include path for jpeglib.h
* Fixed bug #78314 (missing freetype support/functions with external gd)Remi Collet2019-07-201-0/+3
|
* Support TGA readingChristoph M. Becker2019-06-201-1/+3
| | | | | | | | | | | We add PHP bindings for libgd's features to read TGA files, which are available as of libgd 2.1.0. As PHP's bundled libgd doesn't yet include the respective features of the external libgd, we add these. Since TGA has no easily recognizable file signature, we don't add TGA support for imagecreatefromstring() or getimagesize() and friends.
* Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-3/+0
| | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-17/+43
| | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* Use pkg-config to detect and configure for system libgdChristoph M. Becker2019-01-211-69/+44
| | | | | | | | | Formerly, a single option `--with-gd` was sufficient to enable the extension, and to determine whether to use the system or the bundled libgd depending on whether a directory was passed. Since pkg-config determines the path automatically, we now offer `--enable-gd` (whether the extension should be build) and `--with-external-gd` (whether to use the system libgd).
* Migrate ext/gd to pkg-configNikita Popov2019-01-151-206/+52
| | | | | | | | | | * --with-webp-dir becomes --with-webp * --with-jpeg-dir becomes --with-jpeg * --with-png-dir is removed. libpng is required. * --with-zlib-dir is removed. zlib is required. * --with-xpm-dir becomes --with-xpm. We also enable --with-webp on Travis.
* ext/gd: use --with instead of --enableEli Schwartz2018-12-261-2/+2
| | | | | | | | | By convention it probably makes sense to stick with this even when dropping the *-dir=DIR part. See: https://github.com/php/php-src/pull/3632#discussion_r229474568 https://autotools.io/autoconf/arguments.html
* ext/gd: Use pkg-config to detect the availability of freetype2Eli Schwartz2018-11-071-20/+5
| | | | | | | | | | The latest version of freetype2 does not install freetype-config by default, but pkg-config support has been there for approximately 15 years. In order to reliably detect freetype2, pkg-config *must* be used. See: https://savannah.nongnu.org/bugs/?53093 https://bugs.php.net/bug.php?id=76324
* Trim trailing whitespaces in build filesPeter Kokot2018-07-291-1/+1
| | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files: - ext/*/config*.m4 - configure.ac - acinclude.m4
* Remove unused Git attributes identPeter Kokot2018-07-251-3/+1
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Fix: follow the indent of the other configure optionsTom Van Looy2018-02-151-1/+1
|
* Merge branch 'pull-request/2773' into PHP-7.2Christoph M. Becker2017-09-261-1/+0
|\ | | | | | | | | * pull-request/2773: Fix PHP_GD_TTSTR: command not found warning in ext/gd
| * Fix PHP_GD_TTSTR: command not found warning in ext/gdPeter Kokot2017-09-251-2/+1
|/
* Merge branch 'PHP-7.1'Joe Watkins2017-03-301-1/+1
|\ | | | | | | | | * PHP-7.1: fix bug #74343 compile fails on solaris 11 with system libgd
| * fix bug #74343 compile fails on solaris 11 with system libgdJoe Watkins2017-03-301-1/+1
| |
* | fix command not found warning in ext/gdTom Van Looy2017-02-241-1/+0
| | | | | | | | ./configure: line 32011: PHP_GD_TTSTR: command not found
* | Implement #69606: Support BMPs (added in GD 2.1.0)Christoph M. Becker2017-01-041-1/+4
| | | | | | | | | | | | | | | | We add PHP bindings for libgd's features to read and write BMP files, which are available as of libgd 2.1.0. As PHP's bundled libgd doesn't yet include the respective features of the external libgd, we add these.
* | Sync with libgd wrt. compilation unitsChristoph M. Becker2016-09-201-2/+2
| | | | | | | | | | | | | | * integrate gd_arc.c into gd.c (as of gd-2.1.0-alpha1) * rename gd_color.c to gd_color_match.c (as of gd-2.1.0-alpha1) * remove mathmake.c (as of GD_2_0_34RC1) * rename xbm.c to gd_xbm.c (as of gd-2.1.0-alpha1)
* | Remove effectless --enable-gd-native-ttf and USE_GD_IMGSTRTTFChristoph M. Becker2016-09-141-10/+0
|/ | | | | --enable-gd-native-ttf did set USE_GD_IMGSTRTTF, which is otherwise unused as of commit 8a90aad3 (i.e. PHP 5.5.0), at least.
* libwebp support for linuxAnatol Belski2015-07-211-20/+28
|
* Remove T1Lib support (see #69698)Kalle Sommer Nielsen2015-05-291-29/+0
| | | | # Also removes imagepscopyfont() which was never available (commented out)
* Fix bug #68656 Report gd library versionRemi Collet2014-12-261-0/+1
|
* Merge branch 'PHP-5.4' into PHP-5.5Adam Harvey2013-12-071-16/+11
|\ | | | | | | | | * PHP-5.4: Switch to using freetype-config for freetype detection.
| * Switch to using freetype-config for freetype detection.Adam Harvey2013-12-071-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes GD compilation against libfreetype 2.5.1 and later after they made the rather interesting decision to change their include directory layout in a point release. The original suggestion in the bug was to use pkg-config, but my inclination is to use freetype-config instead: we should be able to get the same configuration information without actually needing pkg-config installed, since pkg-config is by no means guaranteed to exist on many Unices and distros, whereas freetype-config should always be present if a libfreetype build environment is installed. Let's try it out and see what happens. Fixes bug #64405 (Use freetype-config for determining freetype2 dir(s)).
* | Fix long-standing visual pain point: the misalignment of './configure help' ↵Christopher Jones2013-08-061-4/+4
| | | | | | | | | | | | text. Whitespace changes and a couple of grammar fixes.
* | Fixed bug #64785 : restore 5.4 behaviour, libpng is mandatoryRemi Collet2013-05-081-3/+4
| |
* | Move (back) missing functions in system libgd to gd_compatRemi Collet2013-05-051-0/+1
| | | | | | | | | | - display libPng version in all cases - gd_compat.c in ext/gd (nothing in ext/gd/libgd)
* | gd: missing commaRemi Collet2013-05-051-2/+1
| |
* | gd: fix typo and cleanupsRemi Collet2013-05-041-8/+7
| |
* | Move png and jpeg version functions to gd.c so the external library build ↵Ondřej Surý2013-05-041-1/+0
| | | | | | | | doesn't include anything from libgd/.
* | Rewrite Xpm library check so it doesn't break on MultiArch systemsOndřej Surý2013-05-041-9/+2
| |
* | Required GD >= 2.1.0 or GD bundled, this allows us to remove most of the #ifdefOndřej Surý2013-05-041-107/+37
| |
* | * Remove overflow2, getmbi and skipheaders from gd_compat.h * Add missing ↵Ondřej Surý2013-05-041-0/+1
| | | | | | | | return in _php_ctx_getmbi * Reintroduce imagecreatefromxbm by checking for gdCreateImageFromXbm
* | Allow to use new GD-2.1.0 function from system libraryOndřej Surý2013-05-041-15/+27
| |
* | allow use of gdImageCreateFromJpegEx with system libgdRemi Collet2013-04-241-0/+2
| |
* | gd: provide imageflip with system libgd when availableRemi Collet2013-04-241-0/+2
| |
* | enable WebP with system libgd when availableRemi Collet2013-04-231-0/+1
| |
* | Merge branch 'PHP-5.4' into PHP-5.5Pierre Joye2013-04-101-0/+2
|\ \ | |/ | | | | | | * PHP-5.4: add external 2.1 detection and fix gd_compat for 2.1+
| * Merge branch 'PHP-5.3' into PHP-5.4Pierre Joye2013-04-101-0/+2
| |\ | | | | | | | | | | | | * PHP-5.3: add external 2.1 detection and fix gd_compat for 2.1+
| | * add external 2.1 detection and fix gd_compat for 2.1+Pierre Joye2013-04-101-0/+2
| | |
| | * Check headers first and let the CHECK_LIBRARY macroRasmus Lerdorf2011-05-121-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | handle checking for the library. This makes it correctly handle non-standard system paths as long as gcc knows about them. Should fix the build on Ubuntu natty.
* | | - config.m4 sync with .w32Pierre Joye2013-03-201-1/+1
| | |
* | | - add image crop supportPierre Joye2013-02-281-1/+2
| | |
* | | - add new file for m4 as wellPierre Joye2013-02-271-1/+1
|/ /
* | Check headers first and let the CHECK_LIBRARY macroRasmus Lerdorf2011-05-121-10/+6
| | | | | | | | | | | | | | | | handle checking for the library. This makes it correctly handle non-standard system paths as long as gcc knows about them. Should fix the build on Ubuntu natty.
* | - initial webp support, rely on libpx, final version will be either w/o dep ↵Pierre Joye2010-10-041-6/+44
|/ | | | or using libwebp (to be released by g)