]> granicus.if.org Git - php/commitdiff
Added build test. Bug: #19345
authorfoobar <sniper@php.net>
Wed, 11 Sep 2002 15:34:44 +0000 (15:34 +0000)
committerfoobar <sniper@php.net>
Wed, 11 Sep 2002 15:34:44 +0000 (15:34 +0000)
ext/gd/config.m4

index ba9f2b383bc6c18bf744a747e11e483c97f44e40..0791fa90b95ed1d364bb99da217c25633eb6ee60 100644 (file)
@@ -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