Skip to content

Commit 95347cd

Browse files
author
Sascha Schumann
committed
Further work on autoconf-2.5x support
1 parent 9350a23 commit 95347cd

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

configure.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ AC_PROG_LN_S
122122
AC_PROG_LEX
123123
if test -n "$LEX"; then
124124
AC_DECL_YYTEXT
125+
:
125126
fi
126127

127128
dnl ## Make flex scanners use const if they can, even if __STDC__ is not
@@ -934,7 +935,7 @@ pear/scripts/pearize pear/scripts/phptar TSRM/Makefile $PHP_OUTPUT_FILES"
934935
935936
AC_OUTPUT($ALL_OUTPUT_FILES, [], [
936937
937-
if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
938+
if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
938939
REDO_ALL=yes
939940
fi
940941
@@ -953,9 +954,10 @@ fi
953954
# Create configuration headers
954955
#
955956
956-
if test -d TSRM; then
957-
echo '#include "../main/php_config.h"' > TSRM/tsrm_config.h
958-
fi
957+
test -d TSRM || mkdir TSRM
958+
echo '#include "../main/php_config.h"' > TSRM/tsrm_config.h
959+
960+
test -d Zend || mkdir Zend
959961
960962
cat >Zend/zend_config.h <<FEO
961963
#include "../main/php_config.h"

ext/cpdf/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ AC_ARG_WITH(cpdflib,
1313
AC_MSG_RESULT(yes)
1414
PHP_EXTENSION(cpdf)
1515
AC_CHECK_LIB(cpdf, cpdf_open, [AC_DEFINE(HAVE_CPDFLIB,1,[Whether you have cpdflib])],
16-
[AC_MSG_ERROR(Cpdf module requires cpdflib >= 2.)])
16+
[AC_MSG_ERROR([Cpdf module requires cpdflib >= 2.])])
1717
PHP_ADD_LIBRARY(cpdf)
1818
PHP_ADD_LIBRARY(tiff)
1919
PHP_ADD_LIBRARY(jpeg)
@@ -59,7 +59,7 @@ AC_ARG_WITH(cpdflib,
5959
6060
LIBS="$LIBS -L$withval/lib"
6161
AC_CHECK_LIB(cpdf, cpdf_open, [AC_DEFINE(HAVE_CPDFLIB,1,[Whether you have cpdflib])],
62-
[AC_MSG_ERROR(Cpdflib module requires cpdflib >= 2.)])
62+
[AC_MSG_ERROR([Cpdflib module requires cpdflib >= 2.])])
6363
LIBS=$old_LIBS
6464
PHP_ADD_LIBRARY_WITH_PATH(cpdf, $withval/lib)
6565
PHP_ADD_INCLUDE($CPDFLIB_INCLUDE)

ext/pdf/config.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if test "$PHP_PDFLIB" != "no"; then
1818
AC_CHECK_LIB(pdf, PDF_show_boxed, [
1919
AC_DEFINE(HAVE_PDFLIB,1,[ ])
2020
],[
21-
AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>)
21+
AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>])
2222
],[
2323
-ltiff -ljpeg -lpng -lz
2424
])
@@ -34,7 +34,7 @@ if test "$PHP_PDFLIB" != "no"; then
3434
if test -n "$PDFLIB_INCLUDE" ; then
3535

3636
if test "$PHP_ZLIB_DIR" = "no"; then
37-
AC_MSG_ERROR(PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>)
37+
AC_MSG_ERROR([PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>])
3838
fi
3939

4040
PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, PDFLIB_SHARED_LIBADD)
@@ -47,7 +47,7 @@ if test "$PHP_PDFLIB" != "no"; then
4747
[
4848
PHP_ADD_LIBRARY_WITH_PATH(jpeg, $PHP_JPEG_DIR/lib, PDFLIB_SHARED_LIBADD)
4949
],[
50-
AC_MSG_ERROR(libjpeg not found!)
50+
AC_MSG_ERROR([libjpeg not found!])
5151
],[
5252
-L$PHP_JPEG_DIR/lib
5353
])
@@ -69,7 +69,7 @@ if test "$PHP_PDFLIB" != "no"; then
6969
[
7070
PHP_ADD_LIBRARY_WITH_PATH(png, $PHP_PNG_DIR/lib, PDFLIB_SHARED_LIBADD)
7171
],[
72-
AC_MSG_ERROR(libpng not found!)
72+
AC_MSG_ERROR([libpng not found!])
7373
],[
7474
-L$PHP_PNG_DIR/lib
7575
])
@@ -91,7 +91,7 @@ if test "$PHP_PDFLIB" != "no"; then
9191
[
9292
PHP_ADD_LIBRARY_WITH_PATH(tiff, $PHP_TIFF_DIR/lib, PDFLIB_SHARED_LIBADD)
9393
],[
94-
AC_MSG_ERROR(libtiff not found!)
94+
AC_MSG_ERROR([libtiff not found!])
9595
],[
9696
-L$PHP_TIFF_DIR/lib
9797
])
@@ -111,7 +111,7 @@ if test "$PHP_PDFLIB" != "no"; then
111111
PHP_ADD_LIBRARY_WITH_PATH(pdf, $PHP_PDFLIB/lib, PDFLIB_SHARED_LIBADD)
112112
PHP_ADD_INCLUDE($PDFLIB_INCLUDE)
113113
],[
114-
AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x.)
114+
AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x.])
115115
],[
116116
-L$PHP_PDFLIB/lib
117117
])

0 commit comments

Comments
 (0)