php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62098
Patch patch1 revision 2012-05-21 17:55 UTC by tomkrawc at gmail dot com

Patch patch1 for haru Bug #62098

Patch version 2012-05-21 17:55 UTC

Return to Bug #62098 | Download this patch
Patch Revisions:

Developer: tomkrawc@gmail.com

--- config-orig.w32	2012-02-02 12:21:40.000000000 +0100
+++ config.w32	2012-05-21 18:55:51.328125000 +0200
@@ -3,13 +3,17 @@
 
 ARG_WITH("haru", "Haru PDF support", "no");
 
-if (PHP_HARU == "yes") {
+if (PHP_HARU != "no") {
 	if (CHECK_LIB("libhpdf.lib", "haru") &&
-			CHECK_LIB("libpng.lib", "haru") &&
-			CHECK_LIB("zlib.lib", "haru") &&
-			CHECK_HEADER_ADD_INCLUDE("hpdf.h", "CFLAGS_HARU", PHP_HARU + ";" + PHP_PHP_BUILD + "\\include\\libharu")) {
+			CHECK_LIB("libpng_a.lib", "haru") &&
+			CHECK_LIB("zlib_a.lib", "haru") &&
+			CHECK_HEADER_ADD_INCLUDE("hpdf.h", "CFLAGS_HARU", PHP_HARU + ";" + PHP_PHP_BUILD + "\\include\\libharu")
+		) {
 
 		EXTENSION("haru", "haru.c");
+		AC_DEFINE('HAVE_HARU', 1, "Have haru support");
+	}
+	else {
+		WARNING("haru not enabled; libraries and headers not found");
 	}
 }
-
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC