diff options
author | foobar <sniper@php.net> | 2001-08-30 16:29:36 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-08-30 16:29:36 +0000 |
commit | 67b9fb491221fdd20c47ebfefe7f8acd29c5f3d0 (patch) | |
tree | 97eee4889d29ac2747abf0d1e0e321c7077ada83 | |
parent | 452c41ec9ea1d21db0bd77055969599670c97ae3 (diff) | |
download | php-git-67b9fb491221fdd20c47ebfefe7f8acd29c5f3d0.tar.gz |
KISS. And the search order must be reversed always. Last one counts.
-rw-r--r-- | ext/fdf/config.m4 | 21 |
1 files changed, 7 insertions, 14 deletions
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 - |