cvs: php4 /ext/fdf config.m4
| From: | Jani Taskinen | Date: | Thu, 30 Aug 2001 16:29:36 +0000 |
| Subject: | cvs: php4 /ext/fdf config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7129@lists.php.net to get a copy of this message | ||
sniper Thu Aug 30 12:29:36 2001 EDT
Modified files:
/php4/ext/fdf config.m4
Log:
KISS. And the search order must be reversed always. Last one counts.
Index: php4/ext/fdf/config.m4
diff -u php4/ext/fdf/config.m4:1.13 php4/ext/fdf/config.m4:1.14
--- php4/ext/fdf/config.m4:1.13 Wed Aug 1 09:15:26 2001
+++ php4/ext/fdf/config.m4 Thu Aug 30 12:29:36 2001
@@ -1,24 +1,18 @@
-dnl $Id: config.m4,v 1.13 2001/08/01 13:15:26 sniper Exp $
+dnl $Id: config.m4,v 1.14 2001/08/30 16:29:36 sniper Exp $
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 @@
PHP_SUBST(FDFTK_SHARED_LIBADD)
PHP_EXTENSION(fdf, $ext_shared)
fi
-