From e54bc671dd89ed1d1593e41d68414e2990e6bff8 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 11 Sep 2002 15:34:44 +0000 Subject: [PATCH] Added build test. Bug: #19345 --- ext/gd/config.m4 | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1