summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Schaaf <rjs@php.net>2004-11-13 23:42:08 +0000
committerRainer Schaaf <rjs@php.net>2004-11-13 23:42:08 +0000
commit189654d882393eb134fc8b812961b5e93bd63e76 (patch)
tree9abb4f61fee2ccbdb742426473333225487b1903
parent4ac12414261adc44d3279b9be0e5a543ee893ea4 (diff)
downloadphp-git-189654d882393eb134fc8b812961b5e93bd63e76.tar.gz
fixed Bug #29297
Configure now only allows to work with PDFlib up to PDFlib 4, as newer PDFlib versions need the code from the PDFlib PECL module.
-rw-r--r--ext/pdf/config.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/pdf/config.m4 b/ext/pdf/config.m4
index 3c8cee6596..484ef87d39 100644
--- a/ext/pdf/config.m4
+++ b/ext/pdf/config.m4
@@ -111,6 +111,13 @@ Use the options --with-tiff-dir=<DIR>, --with-jpeg-dir=<DIR>, --with-png-dir=<DI
See config.log for more information.
])
])
+ AC_CHECK_LIB(pdf, PDF_load_font, [
+ AC_MSG_ERROR([
+This PDFlib extension only works up to PDFlib 4.0.x.
+For newer PDFlib version please use the PECL package:
+ pecl.php.net/packages/pdflib
+ ])
+ ],[])
;;
*)
if test -f "$PHP_PDFLIB/include/pdflib.h" ; then
@@ -129,6 +136,13 @@ See config.log for more information.
],[
-L$PHP_PDFLIB/lib $PDF_SHARED_LIBADD
])
+ AC_CHECK_LIB(pdf, PDF_load_font, [
+ AC_MSG_ERROR([
+This PDFlib extension only works up to PDFlib 4.0.x.
+For newer PDFlib version please use the PECL package:
+ pecl.php.net/packages/pdflib
+ ])
+ ],[])
else
AC_MSG_ERROR([pdflib.h not found! Check the path passed to --with-pdflib=<PATH>. PATH should be the install prefix directory.])
fi