---- php-4.3.3RC3/ext/cpdf/config.m4.orig 2003-06-26 20:06:46.000000000 +0200
-+++ php-4.3.3RC3/ext/cpdf/config.m4 2003-08-16 16:03:49.062764192 +0200
-@@ -53,7 +53,8 @@
- PHP_WITH_SHARED
- if test "$withval" != "no"; then
- cpdf_withval=$withval
-- PHP_NEW_EXTENSION(cpdf, cpdf.c, $ext_shared,, \\$(GDLIB_CFLAGS))
-+ PHP_NEW_EXTENSION(cpdf, cpdf.c, $shared,, \\$(GDLIB_CFLAGS))
-+ ext_shared=$shared
- PHP_SUBST(CPDF_SHARED_LIBADD)
- CPDF_JPEG_TEST
- CPDF_TIFF_TEST
+--- php-5.0.4/ext/cpdf/config.m4.orig 2004-12-30 08:04:10.000000000 +0100
++++ php-5.0.4/ext/cpdf/config.m4 2005-04-04 22:44:23.169848344 +0200
+@@ -49,6 +49,7 @@
+
+ if test "$PHP_CPDFLIB" != "no"; then
+ PHP_NEW_EXTENSION(cpdf, cpdf.c, $ext_shared,, \\$(GDLIB_CFLAGS))
++ PHP_ADD_LIBRARY_WITH_PATH(gd, /usr/lib, CPDF_SHARED_LIBADD)
+ PHP_SUBST(CPDF_SHARED_LIBADD)
+ CPDF_JPEG_TEST
+ CPDF_TIFF_TEST