diff options
-rw-r--r-- | ext/gd/config.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index e884a91cfe..a3b0318457 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -289,6 +289,10 @@ dnl enable the support in bundled GD library GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE" fi + if test -n "$TTF_DIR"; then + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBTTF" + fi + PHP_SUBST(GDLIB_CFLAGS) else |