]> granicus.if.org Git - php/commitdiff
fixed Bug #29297
authorRainer Schaaf <rjs@php.net>
Sat, 13 Nov 2004 23:42:08 +0000 (23:42 +0000)
committerRainer Schaaf <rjs@php.net>
Sat, 13 Nov 2004 23:42:08 +0000 (23:42 +0000)
Configure now only allows to work with PDFlib up to PDFlib 4, as newer
PDFlib versions need the code from the PDFlib PECL module.

ext/pdf/config.m4

index 3c8cee6596df78daef1d541aa43b61ca8bf5bf9c..484ef87d3920615b70638ac204a92e68ac9d8f25 100644 (file)
@@ -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