diff options
author | foobar <sniper@php.net> | 2002-09-11 15:34:44 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-09-11 15:34:44 +0000 |
commit | e54bc671dd89ed1d1593e41d68414e2990e6bff8 (patch) | |
tree | 5193663c7ec76e52505876c05f60c7b41842ccf8 | |
parent | 6fe296aa69d49cda5e7261745cbe4c1a3a2485e1 (diff) | |
download | php-git-e54bc671dd89ed1d1593e41d68414e2990e6bff8.tar.gz |
Added build test. Bug: #19345
-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 ba9f2b383b..0791fa90b9 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -366,6 +366,10 @@ if test "$PHP_GD" != "no"; then PHP_ADD_INCLUDE($GD_INCLUDE) fi + PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ -L$GD_LIB $GD_SHARED_LIBADD ]) + PHP_SUBST(GDLIB_CFLAGS) PHP_SUBST(GD_SHARED_LIBADD) fi |