# [PATCH] Small fixes for ext/cpdf/config.m4

- Thread: https://externals.io/message/1110
- Original archive: https://news-web.php.net/php.internals/1110
- Started by Michael Mauch on 2003-04-29T17:09:35+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1110 — Michael Mauch — 2003-04-29T17:09:35+00:00

URL: https://externals.io/message/1110#1110

Hi,

ext/cpdf/config.m4 has two unquoted arguments for "test", these break
configure under some circumstances (see <BAD2323D.2A3F4%ldg@ulysium.net>
in php-install).

Regards...
		Michael

--- ext/cpdf/config.m4.orig	Sat Jan  4 20:53:53 2003
+++ ext/cpdf/config.m4	Tue Apr 29 19:01:17 2003
@@ -23,7 +23,7 @@
       LIBS="$LIBS -L$CPDF_JPEG_DIR/lib"
     ],) 
     AC_CHECK_LIB(jpeg,jpeg_read_header, ,[AC_MSG_ERROR(Problem with libjpeg.(a|so). Please check config.log for more information.)],)
-    if test -z $CPDF_JPEG_DIR; then
+    if test -z "$CPDF_JPEG_DIR"; then
       PHP_ADD_LIBRARY(jpeg)
     else
       PHP_ADD_LIBRARY_WITH_PATH(jpeg, $CPDF_JPEG_DIR/lib)
@@ -48,7 +48,7 @@
       LIBS="$LIBS -L$CPDF_TIFF_DIR/lib"
     ],) 
     AC_CHECK_LIB(tiff,TIFFOpen, ,[AC_MSG_ERROR(Problem with libtiff.(a|so). Please check config.log for more information.)],)
-    if test -z $CPDF_TIFF_DIR; then
+    if test -z "$CPDF_TIFF_DIR"; then
       PHP_ADD_LIBRARY(tiff)
     else
       PHP_ADD_LIBRARY_WITH_PATH(tiff, $CPDF_TIFF_DIR/lib)
