From e8271cc71ebc57845156db353506e23c25ac68cb Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 20 Mar 2002 00:39:28 +0000 Subject: - Fix this without breaking BC --- ext/fdf/config.m4 | 5 ++++- ext/fdf/php_fdf.h | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4 index c1ef0a81a3..8c2e7a0096 100644 --- a/ext/fdf/config.m4 +++ b/ext/fdf/config.m4 @@ -8,7 +8,10 @@ PHP_ARG_WITH(fdftk, for FDF support, if test "$PHP_FDFTK" != "no"; then for i in /usr /usr/local $PHP_FDFTK; do - if test -r $i/include/FdfTk.h -o -r $i/include/fdftk.h; then + if test -r $i/include/FdfTk.h; then + FDFTK_DIR=$i + elif test -r $i/include/fdftk.h; then + AC_DEFINE(HAVE_FDFTK_H_LOWER,1,[ ]) FDFTK_DIR=$i fi done diff --git a/ext/fdf/php_fdf.h b/ext/fdf/php_fdf.h index 2fb605fa0f..54eab5d25b 100644 --- a/ext/fdf/php_fdf.h +++ b/ext/fdf/php_fdf.h @@ -27,7 +27,11 @@ #define UNIX_DEV #endif -#include +#if HAVE_FDFTK_H_LOWER +# include +#else +# include +#endif extern zend_module_entry fdf_module_entry; #define fdf_module_ptr &fdf_module_entry -- cgit v1.2.1