From: foobar Date: Thu, 30 Aug 2001 16:29:36 +0000 (+0000) Subject: KISS. And the search order must be reversed always. Last one counts. X-Git-Tag: PRE_SUBST_Z_MACROS~300 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67b9fb491221fdd20c47ebfefe7f8acd29c5f3d0;p=php KISS. And the search order must be reversed always. Last one counts. --- diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4 index 62a51a0221..139458c8c5 100644 --- a/ext/fdf/config.m4 +++ b/ext/fdf/config.m4 @@ -4,21 +4,15 @@ PHP_ARG_WITH(fdftk, for fdftk support, [ --with-fdftk[=DIR] Include fdftk support]) if test "$PHP_FDFTK" != "no"; then - if test -r $PHP_FDFTK/include/FdfTk.h -o -r $PHP_FDFTK/fdftk.h; then - FDFTK_DIR=$PHP_FDFTK - else - AC_MSG_CHECKING(for fdftk in default path) - for i in /usr/local /usr; do - if test -r $i/include/FdfTk.h -o -r $i/include/fdftk.h; then - FDFTK_DIR=$i - AC_MSG_RESULT(found in $i) - fi - done - fi + + for i in /usr /usr/local $PHP_FDFTK; do + if test -r $i/include/FdfTk.h -o -r $i/include/fdftk.h; then + FDFTK_DIR=$i + fi + done if test -z "$FDFTK_DIR"; then - AC_MSG_RESULT(not found) - AC_MSG_ERROR(Please reinstall the fdftk distribution) + AC_MSG_ERROR(FdfTk.h or fdftk.h not found. Please reinstall the fdftk distribution) fi PHP_ADD_INCLUDE($FDFTK_DIR/include) @@ -38,4 +32,3 @@ if test "$PHP_FDFTK" != "no"; then PHP_SUBST(FDFTK_SHARED_LIBADD) PHP_EXTENSION(fdf, $ext_shared) fi -