summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-03-27 20:35:04 +0000
committerfoobar <sniper@php.net>2001-03-27 20:35:04 +0000
commit8a26918ed113620828f48989e6a170cd630f6a4e (patch)
tree0fedcc6f4b9f8a6c657305fa96b7d89bcc641787 /ext
parentc713967de336eea5b774b134a4e4023f1b8c946c (diff)
downloadphp-git-8a26918ed113620828f48989e6a170cd630f6a4e.tar.gz
Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
Diffstat (limited to 'ext')
-rw-r--r--ext/aspell/config.m44
-rw-r--r--ext/ccvs/config.m44
-rw-r--r--ext/cpdf/config.m414
-rw-r--r--ext/crack/config.m44
-rw-r--r--ext/curl/config.m44
-rw-r--r--ext/cybercash/config.m44
-rw-r--r--ext/cybermut/config.m44
-rw-r--r--ext/dba/config.m44
-rw-r--r--ext/domxml/config.m48
-rw-r--r--ext/fbsql/config.m44
-rw-r--r--ext/fdf/config.m44
-rw-r--r--ext/fribidi/config.m46
-rw-r--r--ext/gd/config.m434
-rw-r--r--ext/gettext/config.m44
-rw-r--r--ext/gmp/config.m44
-rw-r--r--ext/icap/config.m44
-rw-r--r--ext/iconv/config.m44
-rw-r--r--ext/imap/config.m426
-rw-r--r--ext/informix/config.m414
-rw-r--r--ext/ingres_ii/config.m46
-rw-r--r--ext/interbase/config.m44
-rw-r--r--ext/java/config.m416
-rw-r--r--ext/ldap/config.m426
-rw-r--r--ext/mcal/config.m46
-rw-r--r--ext/mcrypt/config.m46
-rw-r--r--ext/mhash/config.m44
-rw-r--r--ext/ming/config.m44
-rw-r--r--ext/mnogosearch/config.m42
-rw-r--r--ext/msql/config.m44
-rw-r--r--ext/muscat/config.m44
-rw-r--r--ext/mysql/config.m46
-rw-r--r--ext/oci8/config.m420
-rw-r--r--ext/odbc/config.m426
-rw-r--r--ext/oracle/config.m4102
-rw-r--r--ext/ovrimos/config.m44
-rw-r--r--ext/pcre/config.m44
-rw-r--r--ext/pcre/config0.m44
-rw-r--r--ext/pdf/config.m430
-rw-r--r--ext/pfpro/config.m44
-rw-r--r--ext/pgsql/config.m44
-rw-r--r--ext/pspell/config.m44
-rw-r--r--ext/qtdom/config.m48
-rw-r--r--ext/readline/config.m418
-rw-r--r--ext/recode/config.m46
-rw-r--r--ext/rpc/java/config.m416
-rw-r--r--ext/sablot/config.m412
-rw-r--r--ext/session/config.m44
-rw-r--r--ext/snmp/config.m46
-rw-r--r--ext/swf/config.m44
-rw-r--r--ext/sybase/config.m46
-rw-r--r--ext/sybase_ct/config.m420
-rw-r--r--ext/vpopmail/config.m44
-rw-r--r--ext/xml/config.m48
-rw-r--r--ext/zlib/config.m44
54 files changed, 280 insertions, 280 deletions
diff --git a/ext/aspell/config.m4 b/ext/aspell/config.m4
index 06b4c276c5..dde5aa2169 100644
--- a/ext/aspell/config.m4
+++ b/ext/aspell/config.m4
@@ -11,8 +11,8 @@ AC_ARG_WITH(aspell,
ASPELL_DIR=$withval
fi
- AC_ADD_INCLUDE($ASPELL_DIR/include)
- AC_ADD_LIBRARY_WITH_PATH(aspell, $ASPELL_DIR/lib)
+ PHP_ADD_INCLUDE($ASPELL_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(aspell, $ASPELL_DIR/lib)
if test ! -f "$ASPELL_DIR/include/aspell-c.h"; then
AC_MSG_ERROR(Could not find aspell-c.h in $ASPELL_DIR/include - please copy it manually from the aspell sources to $ASPELL_DIR/include)
diff --git a/ext/ccvs/config.m4 b/ext/ccvs/config.m4
index ef347ffe9c..8f5851ea36 100644
--- a/ext/ccvs/config.m4
+++ b/ext/ccvs/config.m4
@@ -15,8 +15,8 @@ AC_ARG_WITH(ccvs,
AC_MSG_RESULT(yes)
PHP_EXTENSION(ccvs)
LIBS="$LIBS -L$CCVS_LIB_DIR"
- AC_ADD_LIBRARY_WITH_PATH(ccvs, $CCVS_LIB_DIR)
- AC_ADD_INCLUDE($CCVS_INCLUDE_DIR)
+ PHP_ADD_LIBRARY_WITH_PATH(ccvs, $CCVS_LIB_DIR)
+ PHP_ADD_INCLUDE($CCVS_INCLUDE_DIR)
else
AC_MSG_RESULT(no)
fi
diff --git a/ext/cpdf/config.m4 b/ext/cpdf/config.m4
index 59f2ddb050..c1d6aaa280 100644
--- a/ext/cpdf/config.m4
+++ b/ext/cpdf/config.m4
@@ -14,9 +14,9 @@ AC_ARG_WITH(cpdflib,
PHP_EXTENSION(cpdf)
AC_CHECK_LIB(cpdf, cpdf_open, [AC_DEFINE(HAVE_CPDFLIB,1,[Whether you have cpdflib])],
[AC_MSG_ERROR(Cpdf module requires cpdflib >= 2.)])
- AC_ADD_LIBRARY(cpdf)
- AC_ADD_LIBRARY(tiff)
- AC_ADD_LIBRARY(jpeg)
+ PHP_ADD_LIBRARY(cpdf)
+ PHP_ADD_LIBRARY(tiff)
+ PHP_ADD_LIBRARY(jpeg)
;;
*)
test -f $withval/include/cpdflib.h && CPDFLIB_INCLUDE="$withval/include"
@@ -35,7 +35,7 @@ AC_ARG_WITH(cpdflib,
fi
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(jpeg,jpeg_read_header, ,[AC_MSG_RESULT(no)],)
- AC_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
],[
AC_MSG_RESULT(no)
AC_MSG_WARN(If configure fails try --with-jpeg-dir=<DIR>)
@@ -50,7 +50,7 @@ AC_ARG_WITH(cpdflib,
fi
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(tiff,TIFFOpen, ,[AC_MSG_RESULT(no)],)
- AC_ADD_LIBRARY_WITH_PATH(tiff, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(tiff, $withval/lib)
],[
AC_MSG_RESULT(no)
AC_MSG_WARN(If configure fails try --with-tiff-dir=<DIR>)
@@ -61,8 +61,8 @@ AC_ARG_WITH(cpdflib,
AC_CHECK_LIB(cpdf, cpdf_open, [AC_DEFINE(HAVE_CPDFLIB,1,[Whether you have cpdflib])],
[AC_MSG_ERROR(Cpdflib module requires cpdflib >= 2.)])
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(cpdf, $withval/lib)
- AC_ADD_INCLUDE($CPDFLIB_INCLUDE)
+ PHP_ADD_LIBRARY_WITH_PATH(cpdf, $withval/lib)
+ PHP_ADD_INCLUDE($CPDFLIB_INCLUDE)
else
AC_MSG_RESULT(no)
fi ;;
diff --git a/ext/crack/config.m4 b/ext/crack/config.m4
index 08c0235db2..a53e077eca 100644
--- a/ext/crack/config.m4
+++ b/ext/crack/config.m4
@@ -22,8 +22,8 @@ if test "$PHP_CRACK" != "no"; then
AC_MSG_ERROR(Cannot find a cracklib header file)
fi
- AC_ADD_INCLUDE($CRACK_INCLUDEDIR)
- AC_ADD_LIBRARY_WITH_PATH(crack, $CRACK_LIBDIR)
+ PHP_ADD_INCLUDE($CRACK_INCLUDEDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(crack, $CRACK_LIBDIR)
PHP_EXTENSION(crack, $ext_shared)
diff --git a/ext/curl/config.m4 b/ext/curl/config.m4
index aa91c673b8..cdccaa7eb4 100644
--- a/ext/curl/config.m4
+++ b/ext/curl/config.m4
@@ -23,10 +23,10 @@ if test "$PHP_CURL" != "no"; then
easy.h should be in <curl-dir>/include/curl/)
fi
- AC_ADD_INCLUDE($CURL_DIR/include)
+ PHP_ADD_INCLUDE($CURL_DIR/include)
PHP_SUBST(CURL_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, CURL_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, CURL_SHARED_LIBADD)
AC_CHECK_LIB(curl,curl_easy_perform,
[
diff --git a/ext/cybercash/config.m4 b/ext/cybercash/config.m4
index 9b50aaf6e5..2edb140956 100644
--- a/ext/cybercash/config.m4
+++ b/ext/cybercash/config.m4
@@ -17,8 +17,8 @@ AC_ARG_WITH(cybercash,
AC_CHECK_LIB(mckcrypto,base64_encode,[AC_DEFINE(HAVE_MCK,1,[ ])],
[AC_MSG_ERROR(Please reinstall the CyberCash MCK - cannot find mckcrypto lib)])
LIBS="$old_LIBS"
- AC_ADD_LIBRARY_WITH_PATH(mckcrypto, $MCK_DIR/lib)
- AC_ADD_INCLUDE($MCK_DIR)
+ PHP_ADD_LIBRARY_WITH_PATH(mckcrypto, $MCK_DIR/lib)
+ PHP_ADD_INCLUDE($MCK_DIR)
else
AC_MSG_RESULT(no)
fi
diff --git a/ext/cybermut/config.m4 b/ext/cybermut/config.m4
index dd2bc82205..cf93da9e9f 100644
--- a/ext/cybermut/config.m4
+++ b/ext/cybermut/config.m4
@@ -37,10 +37,10 @@ if test "$PHP_CYBERMUT" != "no"; then
AC_MSG_RESULT(linking libcm-mac.a with libcybermut.a)
ln -sf $CYBERMUT_LIB_DIR/libcm-mac.a $CYBERMUT_LIB_DIR/libcybermut.a
- AC_ADD_INCLUDE($CYBERMUT_INC_DIR)
+ PHP_ADD_INCLUDE($CYBERMUT_INC_DIR)
PHP_SUBST(CYBERMUT_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(cybermut, $CYBERMUT_LIB_DIR, CYBERMUT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(cybermut, $CYBERMUT_LIB_DIR, CYBERMUT_SHARED_LIBADD)
AC_DEFINE(HAVE_CYBERMUT, 1, [ ])
diff --git a/ext/dba/config.m4 b/ext/dba/config.m4
index 23f4cabe52..b0271b17dc 100644
--- a/ext/dba/config.m4
+++ b/ext/dba/config.m4
@@ -31,8 +31,8 @@ AC_DEFUN(AC_DBA_STD_CHECK,[
dnl Attach THIS_x to DBA_x
AC_DEFUN(AC_DBA_STD_ATTACH,[
- AC_ADD_INCLUDE($THIS_INCLUDE)
- AC_ADD_LIBRARY_WITH_PATH($THIS_LIBS, $THIS_LFLAGS, DBA_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($THIS_INCLUDE)
+ PHP_ADD_LIBRARY_WITH_PATH($THIS_LIBS, $THIS_LFLAGS, DBA_SHARED_LIBADD)
THIS_INCLUDE=""
THIS_LIBS=""
diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4
index d2e874d059..29ff87ad59 100644
--- a/ext/domxml/config.m4
+++ b/ext/domxml/config.m4
@@ -44,7 +44,7 @@ if test "$PHP_DOM" != "no"; then
PHP_DOM_CHECK_VERSION
- AC_ADD_INCLUDE($DOMXML_DIR/include)
+ PHP_ADD_INCLUDE($DOMXML_DIR/include)
if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.s? ; then
DOM_LIBNAME="xml2"
@@ -53,7 +53,7 @@ if test "$PHP_DOM" != "no"; then
fi
PHP_SUBST(DOMXML_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD)
if test $HAVE_ZLIB; then
AC_MSG_CHECKING([for zlib (needed by DOM support)])
@@ -65,7 +65,7 @@ if test "$PHP_DOM" != "no"; then
fi
LIBS="$LIBS -L$withval/lib -lz"
AC_CHECK_LIB(z,deflate, ,[AC_MSG_RESULT(no)],)
- AC_ADD_LIBRARY_WITH_PATH(z, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(z, $withval/lib)
],[
AC_MSG_RESULT(no)
AC_MSG_WARN(If configure fails try --with-zlib=<DIR>)
@@ -76,7 +76,7 @@ if test "$PHP_DOM" != "no"; then
fi
AC_DEFINE(HAVE_DOMXML,1,[ ])
- AC_ADD_LIBRARY(z)
+ PHP_ADD_LIBRARY(z)
PHP_EXTENSION(domxml, $ext_shared)
fi
diff --git a/ext/fbsql/config.m4 b/ext/fbsql/config.m4
index 01c30a292a..2289c3c57d 100644
--- a/ext/fbsql/config.m4
+++ b/ext/fbsql/config.m4
@@ -36,6 +36,6 @@ if test "$PHP_FBSQL" != "no"; then
AC_MSG_ERROR(Could not find $FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a)
fi
- AC_ADD_LIBRARY_WITH_PATH(FBCAccess, $FBSQL_INSTALLATION_DIR/lib, $FBSQL_INSTALLATION_DIR/lib)
- AC_ADD_INCLUDE($FBSQL_INSTALLATION_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(FBCAccess, $FBSQL_INSTALLATION_DIR/lib, $FBSQL_INSTALLATION_DIR/lib)
+ PHP_ADD_INCLUDE($FBSQL_INSTALLATION_DIR/include)
fi
diff --git a/ext/fdf/config.m4 b/ext/fdf/config.m4
index e1556ad939..fb6478b0ae 100644
--- a/ext/fdf/config.m4
+++ b/ext/fdf/config.m4
@@ -21,7 +21,7 @@ if test "$PHP_FDFTK" != "no"; then
AC_MSG_ERROR(Please reinstall the fdftk distribution)
fi
- AC_ADD_INCLUDE($FDFTK_DIR/include)
+ PHP_ADD_INCLUDE($FDFTK_DIR/include)
old_LIBS=$LIBS
LIBS="$LIBS -L$FDFTK_DIR/lib -lm"
@@ -30,7 +30,7 @@ if test "$PHP_FDFTK" != "no"; then
LIBS=$old_LIBS
PHP_SUBST(FDFTK_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(FdfTk, $FDFTK_DIR/lib, FDFTK_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(FdfTk, $FDFTK_DIR/lib, FDFTK_SHARED_LIBADD)
PHP_EXTENSION(fdf, $ext_shared)
fi
diff --git a/ext/fribidi/config.m4 b/ext/fribidi/config.m4
index 2421459130..21bd45d9ab 100644
--- a/ext/fribidi/config.m4
+++ b/ext/fribidi/config.m4
@@ -61,9 +61,9 @@ dnl $PHP_FRIBIDI will be "yes"
AC_MSG_RESULT([yes])
- AC_ADD_INCLUDE("$FRIBIDI_INCDIR")
- AC_ADD_INCLUDE("$GLIB_INCDIR")
- AC_ADD_LIBRARY_WITH_PATH(fribidi,"$FRIBIDI_LIBDIR", FRIBIDI_SHARED_LIBADD)
+ PHP_ADD_INCLUDE("$FRIBIDI_INCDIR")
+ PHP_ADD_INCLUDE("$GLIB_INCDIR")
+ PHP_ADD_LIBRARY_WITH_PATH(fribidi,"$FRIBIDI_LIBDIR", FRIBIDI_SHARED_LIBADD)
PHP_SUBST(FRIBIDI_SHARED_LIBADD)
AC_DEFINE(HAVE_FRIBIDI, 1, [ ])
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index f470264c04..3909c661f9 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -14,7 +14,7 @@ AC_DEFUN(PHP_GD_JPEG,[
GD_LIBS="$GD_LIBS -ljpeg"
GD_LFLAGS="$GD_LFLAGS -L$withval/lib"
else
- AC_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
fi
LIBS="$LIBS -L$withval/lib -ljpeg"
],[
@@ -36,8 +36,8 @@ AC_DEFUN(PHP_GD_XPM,[
LIBS="$LIBS -L$withval/lib -lX11"
AC_CHECK_LIB(Xpm,XpmFreeXpmImage, [LIBS="$LIBS -L$withval/lib -lXpm"],[AC_MSG_RESULT(no)],)
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(Xpm, $withval/lib)
- AC_ADD_LIBRARY_WITH_PATH(X11, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(Xpm, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(X11, $withval/lib)
LIBS="$LIBS -L$withval/lib -lXpm -L$withval/lib -lX11"
],[
AC_MSG_RESULT(no)
@@ -47,11 +47,11 @@ AC_DEFUN(PHP_GD_XPM,[
AC_DEFUN(PHP_GD_CHECK_VERSION,[
+ AC_CHECK_LIB(z, compress, LIBS="-lz $LIBS",,)
+ AC_CHECK_LIB(png,png_info_init, LIBS="-lpng $LIBS",,)
AC_CHECK_LIB(gd, gdImageString16, [AC_DEFINE(HAVE_LIBGD13,1,[ ]) ])
AC_CHECK_LIB(gd, gdImagePaletteCopy, [AC_DEFINE(HAVE_LIBGD15,1,[ ]) ])
AC_CHECK_LIB(gd, gdImageColorClosestHWB, [AC_DEFINE(HAVE_COLORCLOSESTHWB,1,[ ]) ])
- AC_CHECK_LIB(z, compress, LIBS="-lz $LIBS",,)
- AC_CHECK_LIB(png,png_info_init, LIBS="-lpng $LIBS",,)
AC_CHECK_LIB(gd, gdImageColorResolve, [AC_DEFINE(HAVE_GDIMAGECOLORRESOLVE,1,[ ])])
AC_CHECK_LIB(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])])
AC_CHECK_LIB(gd, gdImageCreateFromGif, [AC_DEFINE(HAVE_GD_GIF, 1, [ ])])
@@ -100,7 +100,7 @@ AC_ARG_WITH(gd,
GD_LIBS="-lgd $GD_LIBS"
else
AC_MSG_RESULT(yes (static))
- AC_ADD_LIBRARY(gd)
+ PHP_ADD_LIBRARY(gd)
fi
old_LDFLAGS=$LDFLAGS
@@ -112,8 +112,8 @@ dnl Check the capabilities of GD lib...
LIBS=$old_LIBS
LDFLAGS=$old_LDFLAGS
if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then
- AC_ADD_LIBRARY(png)
- AC_ADD_LIBRARY(z)
+ PHP_ADD_LIBRARY(png)
+ PHP_ADD_LIBRARY(z)
if test "$shared" = "yes"; then
GD_LIBS="$GD_LIBS -lpng -lz"
fi
@@ -153,7 +153,7 @@ dnl A whole whack of possible places where this might be
GD_LFLAGS="-L$GD_LIB $GD_LFLAGS"
else
AC_MSG_RESULT(yes (static))
- AC_ADD_LIBRARY_WITH_PATH(gd, $GD_LIB)
+ PHP_ADD_LIBRARY_WITH_PATH(gd, $GD_LIB)
fi
old_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -L$GD_LIB"
@@ -165,8 +165,8 @@ dnl Check the capabilities of GD lib...
LIBS=$old_LIBS
LDFLAGS=$old_LDFLAGS
if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then
- AC_ADD_LIBRARY(z)
- AC_ADD_LIBRARY(png)
+ PHP_ADD_LIBRARY(z)
+ PHP_ADD_LIBRARY(png)
if test "$shared" = "yes"; then
GD_LIBS="$GD_LIBS -lpng -lz"
fi
@@ -210,12 +210,12 @@ if test "$with_gd" != "no" && test "$ac_cv_lib_gd_gdImageLine" = "yes"; then
GD_LIBS="$GD_LIBS -lttf"
GD_LFLAGS="$GD_LFLAGS -L$TTF_DIR/lib"
else
- AC_ADD_LIBRARY_WITH_PATH(ttf, $TTF_DIR/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(ttf, $TTF_DIR/lib)
fi
if test -z "$TTF_INC_DIR"; then
TTF_INC_DIR="$TTF_DIR/include"
fi
- AC_ADD_INCLUDE($TTF_INC_DIR)
+ PHP_ADD_INCLUDE($TTF_INC_DIR)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
@@ -242,12 +242,12 @@ if test "$with_gd" != "no" && test "$ac_cv_lib_gd_gdImageLine" = "yes"; then
fi
if test "$T1_DIR" != "no"; then
- AC_ADD_INCLUDE("$T1_DIR/include")
+ PHP_ADD_INCLUDE("$T1_DIR/include")
if test "$shared" = "yes"; then
GD_LIBS="$GD_LIBS -lt1"
GD_LFLAGS="$GD_LFLAGS -L$T1_DIR/lib"
else
- AC_ADD_LIBRARY_WITH_PATH(t1, "$T1_DIR/lib")
+ PHP_ADD_LIBRARY_WITH_PATH(t1, "$T1_DIR/lib")
fi
LIBS="$LIBS -L$T1_DIR/lib -lt1"
fi
@@ -271,8 +271,8 @@ dnl SuSE 6.x package structure
GD_INCLUDE="/usr/include/gd"
fi
- AC_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE)
- AC_ADD_INCLUDE($GD_INCLUDE)
+ PHP_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE)
+ PHP_ADD_INCLUDE($GD_INCLUDE)
PHP_EXTENSION(gd, $shared)
if test "$shared" != "yes"; then
GD_STATIC="libphpext_gd.la"
diff --git a/ext/gettext/config.m4 b/ext/gettext/config.m4
index 4c8134bbc1..08d7748ff9 100644
--- a/ext/gettext/config.m4
+++ b/ext/gettext/config.m4
@@ -34,8 +34,8 @@ if test "$PHP_GETTEXT" != "no"; then
PHP_SUBST(GETTEXT_SHARED_LIBADD)
if test -n "$GETTEXT_LIBS"; then
- AC_ADD_LIBRARY_WITH_PATH($GETTEXT_LIBS, $GETTEXT_LIBDIR, GETTEXT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH($GETTEXT_LIBS, $GETTEXT_LIBDIR, GETTEXT_SHARED_LIBADD)
fi
- AC_ADD_INCLUDE($GETTEXT_INCDIR)
+ PHP_ADD_INCLUDE($GETTEXT_INCDIR)
fi
diff --git a/ext/gmp/config.m4 b/ext/gmp/config.m4
index 4dea939c99..0a0848f397 100644
--- a/ext/gmp/config.m4
+++ b/ext/gmp/config.m4
@@ -18,10 +18,10 @@ if test "$PHP_GMP" != "no"; then
if test -z "$GMP_DIR"; then
AC_MSG_ERROR(Unable to locate gmp.h)
fi
- AC_ADD_INCLUDE($GMP_DIR/include)
+ PHP_ADD_INCLUDE($GMP_DIR/include)
PHP_EXTENSION(gmp, $ext_shared)
AC_DEFINE(HAVE_GMP, 1, [ ])
- AC_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib)
fi
diff --git a/ext/icap/config.m4 b/ext/icap/config.m4
index 2bd3b6a129..829677a3de 100644
--- a/ext/icap/config.m4
+++ b/ext/icap/config.m4
@@ -7,9 +7,9 @@ if test "$PHP_ICAP" != "no"; then
ICAP_DIR=$PHP_ICAP
test "$ICAP_DIR" = "yes" && ICAP_DIR=/usr/local
- AC_ADD_INCLUDE($ICAP_DIR)
+ PHP_ADD_INCLUDE($ICAP_DIR)
PHP_SUBST(ICAP_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(icap, $ICAP_DIR, ICAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(icap, $ICAP_DIR, ICAP_SHARED_LIBADD)
AC_DEFINE(HAVE_ICAP,1,[ ])
PHP_EXTENSION(icap, $ext_shared)
fi
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
index 2bf91e395b..a177020515 100644
--- a/ext/iconv/config.m4
+++ b/ext/iconv/config.m4
@@ -23,13 +23,13 @@ if test "$PHP_ICONV" != "no"; then
AC_MSG_ERROR(Please reinstall the iconv library)
fi
- AC_ADD_INCLUDE($ICONV_DIR/include)
+ PHP_ADD_INCLUDE($ICONV_DIR/include)
PHP_SUBST(ICONV_SHARED_LIBADD)
if test -f $ICONV_DIR/lib/libconv.a -o -f $ICONV_DIR/lib/libiconv.so ; then
AC_CHECK_LIB(iconv, iconv_open, AC_DEFINE(HAVE_ICONV, 1, [ ]))
- AC_ADD_LIBRARY_WITH_PATH(iconv, $ICONV_DIR/lib, ICONV_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(iconv, $ICONV_DIR/lib, ICONV_SHARED_LIBADD)
else
AC_CHECK_LIB(c, iconv_open, AC_DEFINE(HAVE_ICONV, 1, [ ]))
fi
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4
index e034e29c4f..beefce56be 100644
--- a/ext/imap/config.m4
+++ b/ext/imap/config.m4
@@ -57,7 +57,7 @@ PHP_ARG_WITH(imap,for IMAP support,
fi
done
- AC_EXPAND_PATH($IMAP_DIR, IMAP_DIR)
+ PHP_EXPAND_PATH($IMAP_DIR, IMAP_DIR)
if test -z "$IMAP_DIR"; then
AC_MSG_ERROR(Cannot find rfc822.h. Please check your IMAP installation)
@@ -79,28 +79,28 @@ PHP_ARG_WITH(imap,for IMAP support,
AC_MSG_ERROR(Cannot find imap library. Please check your IMAP installation)
fi
- AC_ADD_INCLUDE($IMAP_INC_DIR)
+ PHP_ADD_INCLUDE($IMAP_INC_DIR)
if test "$ext_shared" = "yes"; then
- AC_ADD_LIBRARY_WITH_PATH($IMAP_LIB, $IMAP_LIBDIR, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH($IMAP_LIB, $IMAP_LIBDIR, IMAP_SHARED_LIBADD)
PHP_SUBST(IMAP_SHARED_LIBADD)
else
- AC_ADD_LIBPATH($IMAP_LIBDIR)
- AC_ADD_LIBRARY_DEFER($IMAP_LIB)
+ PHP_ADD_LIBPATH($IMAP_LIBDIR)
+ PHP_ADD_LIBRARY_DEFER($IMAP_LIB)
fi
if test "$PHP_KERBEROS" != "no"; then
- AC_ADD_LIBPATH($PHP_KERBEROS_LIBDIR, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(com_err,, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(k5crypto,, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(krb5,, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(gssapi_krb5,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($PHP_KERBEROS_LIBDIR, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(com_err,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(k5crypto,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(krb5,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(gssapi_krb5,, IMAP_SHARED_LIBADD)
fi
if test "$PHP_IMAP_SSL" != "no"; then
AC_DEFINE(HAVE_IMAP_SSL,1,[ ])
- AC_ADD_LIBPATH($PHP_SSL_LIBDIR, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(ssl,, IMAP_SHARED_LIBADD)
- AC_ADD_LIBRARY(crypto,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($PHP_SSL_LIBDIR, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(ssl,, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(crypto,, IMAP_SHARED_LIBADD)
fi
PHP_EXTENSION(imap, $ext_shared)
diff --git a/ext/informix/config.m4 b/ext/informix/config.m4
index 8dac054331..537dd451be 100644
--- a/ext/informix/config.m4
+++ b/ext/informix/config.m4
@@ -17,16 +17,16 @@ WARNING: You asked for Informix support, but don't have \\\$INFORMIXDIR
if test "$PHP_INFORMIX" = "yes"; then
IFX_INCDIR=$INFORMIXDIR/incl/esql
if test -z "$IFX_LIBDIR"; then
- AC_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD)
- AC_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD)
else
IFX_LIBDIR="$IFX_LIBDIR"
fi
else
IFX_INCDIR=$PHP_INFORMIX/incl/esql
if test -z "$IFX_LIBDIR"; then
- AC_ADD_LIBPATH($PHP_INFORMIX/lib, INFORMIX_SHARED_LIBADD)
- AC_ADD_LIBPATH($PHP_INFORMIX/lib/esql, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($PHP_INFORMIX/lib, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($PHP_INFORMIX/lib/esql, INFORMIX_SHARED_LIBADD)
else
IFX_LIBDIR="$IFX_LIBDIR"
fi
@@ -73,8 +73,8 @@ WARNING: You specified Informix base install directory that is different
for i in $IFX_LIBS; do
case "$i" in
*.o)
- AC_ADD_LIBPATH($abs_builddir/ext/informix, INFORMIX_SHARED_LIBADD)
- AC_ADD_LIBRARY(php_ifx, 1, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($abs_builddir/ext/informix, INFORMIX_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(php_ifx, 1, INFORMIX_SHARED_LIBADD)
$srcdir/build/shtool mkdir -p ext/informix
cd ext/informix
ar r libphp_ifx.a $i
@@ -82,7 +82,7 @@ WARNING: You specified Informix base install directory that is different
cd ../..;;
-l*)
lib=`echo $i|sed 's/^-l//'`
- AC_ADD_LIBRARY($lib, 1, INFORMIX_SHARED_LIBADD);;
+ PHP_ADD_LIBRARY($lib, 1, INFORMIX_SHARED_LIBADD);;
*)
IFX_LIBADD="$IFX_LIBADD $i";;
esac
diff --git a/ext/ingres_ii/config.m4 b/ext/ingres_ii/config.m4
index 294cb2a8a5..dee71706af 100644
--- a/ext/ingres_ii/config.m4
+++ b/ext/ingres_ii/config.m4
@@ -28,9 +28,9 @@ if test "$PHP_INGRES" != "no"; then
AC_MSG_ERROR(Cannot find libiiapi.a under $II_DIR/lib)
fi
- AC_ADD_LIBRARY_WITH_PATH(iiapi, $II_LIB_DIR, II_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ingres, $II_LIB_DIR, II_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(iiapi, $II_LIB_DIR, II_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ingres, $II_LIB_DIR, II_SHARED_LIBADD)
- AC_ADD_INCLUDE($II_INC_DIR)
+ PHP_ADD_INCLUDE($II_INC_DIR)
fi
PHP_SUBST(II_SHARED_LIBADD)
diff --git a/ext/interbase/config.m4 b/ext/interbase/config.m4
index c2acb383b6..f7a4f03a7c 100644
--- a/ext/interbase/config.m4
+++ b/ext/interbase/config.m4
@@ -12,8 +12,8 @@ if test "$PHP_INTERBASE" != "no"; then
IBASE_INCDIR=$PHP_INTERBASE/include
IBASE_LIBDIR=$PHP_INTERBASE/lib
fi
- AC_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
- AC_ADD_INCLUDE($IBASE_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($IBASE_INCDIR)
AC_DEFINE(HAVE_IBASE,1,[ ])
dnl AC_CHECK_LIB(c, strptime, [AC_DEFINE(HAVE_STRPTIME,1,[])])
PHP_EXTENSION(interbase, $ext_shared)
diff --git a/ext/java/config.m4 b/ext/java/config.m4
index 16f0cfeb11..66996ab371 100644
--- a/ext/java/config.m4
+++ b/ext/java/config.m4
@@ -28,8 +28,8 @@ AC_ARG_WITH(java,
fi
if test -d $withval/lib/kaffe; then
- AC_ADD_LIBPATH($withval/lib)
- AC_ADD_LIBPATH($withval/lib/kaffe)
+ PHP_ADD_LIBPATH($withval/lib)
+ PHP_ADD_LIBPATH($withval/lib/kaffe)
JAVA_CFLAGS="-DKAFFE"
JAVA_INCLUDE=-I$withval/include/kaffe
@@ -73,10 +73,10 @@ AC_ARG_WITH(java,
if test -f $i/$java_libext; then
JAVA_LIB=java
JAVA_LIBPATH=$i
- test -d $i/hotspot && AC_ADD_LIBPATH($i/hotspot)
- test -d $i/classic && AC_ADD_LIBPATH($i/classic)
- test -d $i/server && AC_ADD_LIBPATH($i/server)
- test -d $i/native_threads && AC_ADD_LIBPATH($i/native_threads)
+ test -d $i/hotspot && PHP_ADD_LIBPATH($i/hotspot)
+ test -d $i/classic && PHP_ADD_LIBPATH($i/classic)
+ test -d $i/server && PHP_ADD_LIBPATH($i/server)
+ test -d $i/native_threads && PHP_ADD_LIBPATH($i/native_threads)
fi
done
@@ -89,14 +89,14 @@ AC_ARG_WITH(java,
fi
AC_DEFINE(HAVE_JAVA,1,[ ])
- AC_ADD_LIBPATH($JAVA_LIBPATH)
+ PHP_ADD_LIBPATH($JAVA_LIBPATH)
JAVA_CFLAGS="$JAVA_CFLAGS '-DJAVALIB=\"$JAVA_LIBPATH/$java_libext\"'"
if test "$PHP_SAPI" != "servlet"; then
PHP_EXTENSION(java, shared)
if test "$PHP_SAPI" = "cgi"; then
- AC_ADD_LIBRARY($JAVA_LIB)
+ PHP_ADD_LIBRARY($JAVA_LIB)
fi
INSTALL_IT="$INSTALL_IT; \$(srcdir)/build/shtool mkdir -p -f -m 0755 \$(libdir)"
diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4
index 93d9f1844b..116baef441 100644
--- a/ext/ldap/config.m4
+++ b/ext/ldap/config.m4
@@ -47,43 +47,43 @@ if test "$PHP_LDAP" != "no"; then
fi
if test -f $LDAP_LIBDIR/liblber.a -o -f $LDAP_LIBDIR/liblber.so -o -f $LDAP_LIBDIR/liblber.sl; then
- AC_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
elif test -f $LDAP_LIBDIR/libldap.so.3; then
- AC_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
elif test -f $LDAP_LIBDIR/libldapssl41.so -o -f $LDAP_LIBDIR/libldapssl41.sl; then
if test -n "$LDAP_PTHREAD"; then
- AC_ADD_LIBRARY($LDAP_PTHREAD)
+ PHP_ADD_LIBRARY($LDAP_PTHREAD)
fi
- AC_ADD_LIBRARY_WITH_PATH(ldapssl41, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldapssl41, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_NSLDAP,1,[ ])
elif test -f $LDAP_LIBDIR/libldapssl30.so -o -f $LDAP_LIBDIR/libldapssl30.sl; then
if test -n "$LDAP_PTHREAD"; then
- AC_ADD_LIBRARY($LDAP_PTHREAD)
+ PHP_ADD_LIBRARY($LDAP_PTHREAD)
fi
- AC_ADD_LIBRARY_WITH_PATH(ldapssl30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldapssl30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_NSLDAP,1,[ ])
elif test -f $LDAP_LIBDIR/libldap30.so -o -f $LDAP_LIBDIR/libldap30.sl; then
if test -n "$LDAP_PTHREAD"; then
- AC_ADD_LIBRARY($LDAP_PTHREAD)
+ PHP_ADD_LIBRARY($LDAP_PTHREAD)
fi
- AC_ADD_LIBRARY_WITH_PATH(ldap30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldap30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_NSLDAP,1,[ ])
elif test -f $LDAP_LIBDIR/libumich_ldap.so; then
- AC_ADD_LIBRARY_WITH_PATH(umich_lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(umich_ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(umich_lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(umich_ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
elif test -f $LDAP_LIBDIR/libclntsh.so; then
- AC_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_ORALDAP,1,[ ])
fi
- AC_ADD_INCLUDE($LDAP_INCDIR)
+ PHP_ADD_INCLUDE($LDAP_INCDIR)
PHP_SUBST(LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_LDAP,1,[ ])
fi
diff --git a/ext/mcal/config.m4 b/ext/mcal/config.m4
index 5aebe9009c..6a6e6eea85 100644
--- a/ext/mcal/config.m4
+++ b/ext/mcal/config.m4
@@ -8,7 +8,7 @@ if test "$PHP_MCAL" != "no"; then
if test "$PHP_MCAL" = "yes"; then
MCAL_DIR=$MCAL_DEFAULT_SEARCH
else
- AC_EXPAND_PATH($PHP_MCAL, MCAL_DIR)
+ PHP_EXPAND_PATH($PHP_MCAL, MCAL_DIR)
fi
for i in $MCAL_DIR $MCAL_DIR/mcal $MCAL_DIR/mcal/include $MCAL_DIR/include/mcal $MCAL_DIR/include; do
@@ -39,8 +39,8 @@ if test "$PHP_MCAL" != "no"; then
AC_MSG_ERROR(Unable to locate your libmcal library files - libmcal.a should be in the directory you specify or in the lib/ subdirectory below it - default search location is $MCAL_DEFAULT_SEARCH)
fi
- AC_ADD_INCLUDE($MCAL_INCLUDE)
- AC_ADD_LIBRARY_WITH_PATH(mcal, $MCAL_LIBRARY, MCAL_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($MCAL_INCLUDE)
+ PHP_ADD_LIBRARY_WITH_PATH(mcal, $MCAL_LIBRARY, MCAL_SHARED_LIBADD)
PHP_SUBST(MCAL_SHARED_LIBADD)
AC_DEFINE(HAVE_MCAL,1,[ ])
PHP_EXTENSION(mcal,$ext_shared)
diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4
index 0320785653..58fb050ced 100644
--- a/ext/mcrypt/config.m4
+++ b/ext/mcrypt/config.m4
@@ -17,7 +17,7 @@ if test "$PHP_MCRYPT" != "no"; then
AC_MSG_ERROR(Please reinstall libmcrypt - I cannot find mcrypt.h)
fi
- AC_ADD_INCLUDE($MCRYPT_DIR/include)
+ PHP_ADD_INCLUDE($MCRYPT_DIR/include)
PHP_SUBST(MCRYPT_SHARED_LIBADD)
old_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $ld_runpath_switch$MCRYPT_DIR/lib -L$MCRYPT_DIR/lib"
@@ -28,14 +28,14 @@ if test "$PHP_MCRYPT" != "no"; then
LIBS=$old_LIBS
LDFLAGS="$old_LDFLAGS"
if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then
- AC_ADD_LIBRARY(ltdl)
+ PHP_ADD_LIBRARY(ltdl)
AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ])
elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then
AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ])
else
AC_MSG_ERROR(Sorry, I was not able to diagnose which libmcrypt version you have installed.)
fi
- AC_ADD_LIBRARY_WITH_PATH(mcrypt, $MCRYPT_DIR/lib, MCRYPT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(mcrypt, $MCRYPT_DIR/lib, MCRYPT_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBMCRYPT,1,[ ])
PHP_EXTENSION(mcrypt, $ext_shared)
diff --git a/ext/mhash/config.m4 b/ext/mhash/config.m4
index 3ad4058983..bd99ebb52f 100644
--- a/ext/mhash/config.m4
+++ b/ext/mhash/config.m4
@@ -16,8 +16,8 @@ if test "$PHP_MHASH" != "no"; then
if test -z "$MHASH_DIR"; then
AC_MSG_ERROR(Please reinstall libmhash - I cannot find mhash.h)
fi
- AC_ADD_INCLUDE($MHASH_DIR/include)
- AC_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib, MHASH_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($MHASH_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib, MHASH_SHARED_LIBADD)
PHP_SUBST(MHASH_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBMHASH,1,[ ])
diff --git a/ext/ming/config.m4 b/ext/ming/config.m4
index d8d0ad2937..9b3364bb26 100644
--- a/ext/ming/config.m4
+++ b/ext/ming/config.m4
@@ -15,10 +15,10 @@ if test "$PHP_MING" != "no"; then
AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so)
fi
- AC_ADD_INCLUDE($MING_DIR/include)
+ PHP_ADD_INCLUDE($MING_DIR/include)
PHP_SUBST(MING_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/lib, MING_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/lib, MING_SHARED_LIBADD)
AC_CHECK_LIB(ming, Ming_setScale, [
AC_DEFINE(HAVE_MING,1,[ ])
diff --git a/ext/mnogosearch/config.m4 b/ext/mnogosearch/config.m4
index ceb16e3c45..3d9445d23f 100644
--- a/ext/mnogosearch/config.m4
+++ b/ext/mnogosearch/config.m4
@@ -40,7 +40,7 @@ PHP_ARG_WITH(mnogosearch,for mnoGoSearch support,
AC_MSG_ERROR(udm-config script not found in $MNOGOSEARCH_BINDIR)
fi
- AC_ADD_INCLUDE($MNOGOSEARCH_INCDIR)
+ PHP_ADD_INCLUDE($MNOGOSEARCH_INCDIR)
AC_DEFINE(HAVE_MNOGOSEARCH,1,[ ])
diff --git a/ext/msql/config.m4 b/ext/msql/config.m4
index 3f35142573..a2b046d404 100644
--- a/ext/msql/config.m4
+++ b/ext/msql/config.m4
@@ -31,8 +31,8 @@ PHP_ARG_WITH(msql,for mSQL support,
MSQL_INCDIR=$PHP_MSQL/include
MSQL_LIBDIR=$PHP_MSQL/lib
fi
- AC_ADD_LIBRARY_WITH_PATH(msql, $MSQL_LIBDIR, MSQL_SHARED_LIBADD)
- AC_ADD_INCLUDE($MSQL_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(msql, $MSQL_LIBDIR, MSQL_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($MSQL_INCDIR)
AC_DEFINE(HAVE_MSQL,1,[ ])
PHP_SUBST(MSQL_SHARED_LIBADD)
PHP_EXTENSION(msql,$ext_shared)
diff --git a/ext/muscat/config.m4 b/ext/muscat/config.m4
index 89e90dd0f3..b9c680d994 100644
--- a/ext/muscat/config.m4
+++ b/ext/muscat/config.m4
@@ -30,6 +30,6 @@ if test "$PHP_MUSCAT" != "no"; then
AC_DEFINE(HAVE_MUSCAT, 1, [ ])
PHP_SUBST(MUSCAT_SHARED_LIBADD)
AC_DEFINE_UNQUOTED(PHP_MUSCAT_DIR, "$MUSCAT_DIR", [ ])
- AC_ADD_LIBRARY_WITH_PATH(hdmuscat3.6, $MUSCAT_LIBDIR, MUSCAT_SHARED_LIBADD)
- AC_ADD_INCLUDE($MUSCAT_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(hdmuscat3.6, $MUSCAT_LIBDIR, MUSCAT_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($MUSCAT_INCDIR)
fi
diff --git a/ext/mysql/config.m4 b/ext/mysql/config.m4
index ae536c6c09..587ecba2ef 100644
--- a/ext/mysql/config.m4
+++ b/ext/mysql/config.m4
@@ -51,7 +51,7 @@ if test "$PHP_MYSQL" = "yes"; then
PHP_SUBST(MYSQL_LIBADD)
PHP_SUBST(MYSQL_SUBDIRS)
LIB_BUILD($ext_builddir/libmysql,$ext_shared,yes)
- AC_ADD_INCLUDE($ext_srcdir/libmysql)
+ PHP_ADD_INCLUDE($ext_srcdir/libmysql)
MYSQL_MODULE_TYPE="builtin"
elif test "$PHP_MYSQL" != "no"; then
for i in $PHP_MYSQL; do
@@ -77,14 +77,14 @@ elif test "$PHP_MYSQL" != "no"; then
AC_MSG_ERROR(Cannot find mysqlclient library under $MYSQL_DIR)
fi
- AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD)
dnl Check if mysql_config is found. If yes, use the LIBS provided by it..
if test -x "$MYSQL_DIR/bin/mysql_config"; then
PHP_EVAL_LIBLINE($MYSQL_DIR/bin/mysql_config --libs)
fi
- AC_ADD_INCLUDE($MYSQL_INC_DIR)
+ PHP_ADD_INCLUDE($MYSQL_INC_DIR)
else
MYSQL_MODULE_TYPE="none"
fi
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4
index d832b52d8b..fcc03f35b9 100644
--- a/ext/oci8/config.m4
+++ b/ext/oci8/config.m4
@@ -43,16 +43,16 @@ if test "$PHP_OCI8" != "no"; then
fi
if test -d "$OCI8_DIR/rdbms/public"; then
- AC_ADD_INCLUDE($OCI8_DIR/rdbms/public)
+ PHP_ADD_INCLUDE($OCI8_DIR/rdbms/public)
fi
if test -d "$OCI8_DIR/rdbms/demo"; then
- AC_ADD_INCLUDE($OCI8_DIR/rdbms/demo)
+ PHP_ADD_INCLUDE($OCI8_DIR/rdbms/demo)
fi
if test -d "$OCI8_DIR/network/public"; then
- AC_ADD_INCLUDE($OCI8_DIR/network/public)
+ PHP_ADD_INCLUDE($OCI8_DIR/network/public)
fi
if test -d "$OCI8_DIR/plsql/public"; then
- AC_ADD_INCLUDE($OCI8_DIR/plsql/public)
+ PHP_ADD_INCLUDE($OCI8_DIR/plsql/public)
fi
if test -f "$OCI8_DIR/lib/sysliblist"; then
@@ -64,15 +64,15 @@ if test "$PHP_OCI8" != "no"; then
AC_OCI8_VERSION($OCI8_DIR)
case $OCI8_VERSION in
8.0)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, "", OCI8_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(core4, "", OCI8_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(psa, "", OCI8_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, "", OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core4, "", OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(psa, "", OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD)
;;
8.1)
- AC_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
- AC_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
;;
*)
AC_MSG_ERROR(Unsupported Oracle version!)
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4
index 1dcb8e5adb..348527f8ef 100644
--- a/ext/odbc/config.m4
+++ b/ext/odbc/config.m4
@@ -87,16 +87,16 @@ AC_ARG_WITH(adabas,
withval=/usr/local
fi
if test "$withval" != "no"; then
- AC_ADD_INCLUDE($withval/incl)
- AC_ADD_LIBPATH($withval/lib)
+ PHP_ADD_INCLUDE($withval/incl)
+ PHP_ADD_LIBPATH($withval/lib)
ODBC_OBJS="$withval/lib/odbclib.a"
ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
$srcdir/build/shtool mkdir -f -p ext/odbc
rm -f "$ODBC_LIB"
cp "$ODBC_OBJS" "$ODBC_LIB"
- AC_ADD_LIBRARY(sqlptc)
- AC_ADD_LIBRARY(sqlrte)
- AC_ADD_LIBRARY_WITH_PATH(odbc_adabas, $abs_builddir/ext/odbc)
+ PHP_ADD_LIBRARY(sqlptc)
+ PHP_ADD_LIBRARY(sqlrte)
+ PHP_ADD_LIBRARY_WITH_PATH(odbc_adabas, $abs_builddir/ext/odbc)
ODBC_TYPE=adabas
AC_DEFINE(HAVE_ADABAS,1,[ ])
AC_MSG_RESULT(yes)
@@ -119,10 +119,10 @@ AC_ARG_WITH(sapdb,
withval=/usr/local
fi
if test "$withval" != "no"; then
- AC_ADD_INCLUDE($withval/incl)
- AC_ADD_LIBPATH($withval/lib)
- AC_ADD_LIBRARY(sqlod)
- AC_ADD_LIBRARY(sqlrte)
+ PHP_ADD_INCLUDE($withval/incl)
+ PHP_ADD_LIBPATH($withval/lib)
+ PHP_ADD_LIBRARY(sqlod)
+ PHP_ADD_LIBRARY(sqlrte)
ODBC_TYPE=sapdb
AC_DEFINE(HAVE_SAPDB,1,[ ])
AC_MSG_RESULT(yes)
@@ -306,8 +306,8 @@ AC_ARG_WITH(iodbc,
withval=/usr/local
fi
if test "$withval" != "no"; then
- AC_ADD_LIBRARY_WITH_PATH(iodbc, $withval/lib)
- AC_ADD_INCLUDE($withval/include)
+ PHP_ADD_LIBRARY_WITH_PATH(iodbc, $withval/lib)
+ PHP_ADD_INCLUDE($withval/include)
ODBC_TYPE=iodbc
AC_DEFINE(HAVE_IODBC,1,[ ])
AC_MSG_RESULT(yes)
@@ -453,8 +453,8 @@ AC_ARG_WITH(dbmaker,
ODBC_SHARED="odbc.la"
else
AC_MSG_RESULT(yes (static))
- AC_ADD_LIBRARY_WITH_PATH(dmapic, $ODBC_LIBDIR)
- AC_ADD_INCLUDE($ODBC_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(dmapic, $ODBC_LIBDIR)
+ PHP_ADD_INCLUDE($ODBC_INCDIR)
ODBC_STATIC="libphpext_odbc.la"
fi
diff --git a/ext/oracle/config.m4 b/ext/oracle/config.m4
index 1a720108cf..483d9cad37 100644
--- a/ext/oracle/config.m4
+++ b/ext/oracle/config.m4
@@ -43,16 +43,16 @@ if test "$PHP_ORACLE" != "no"; then
fi
if test -d "$ORACLE_DIR/rdbms/public"; then
- AC_ADD_INCLUDE($ORACLE_DIR/rdbms/public)
+ PHP_ADD_INCLUDE($ORACLE_DIR/rdbms/public)
fi
if test -d "$ORACLE_DIR/rdbms/demo"; then
- AC_ADD_INCLUDE($ORACLE_DIR/rdbms/demo)
+ PHP_ADD_INCLUDE($ORACLE_DIR/rdbms/demo)
fi
if test -d "$ORACLE_DIR/network/public"; then
- AC_ADD_INCLUDE($ORACLE_DIR/network/public)
+ PHP_ADD_INCLUDE($ORACLE_DIR/network/public)
fi
if test -d "$ORACLE_DIR/plsql/public"; then
- AC_ADD_INCLUDE($ORACLE_DIR/plsql/public)
+ PHP_ADD_INCLUDE($ORACLE_DIR/plsql/public)
fi
if test -f "$ORACLE_DIR/lib/sysliblist"; then
@@ -65,23 +65,23 @@ if test "$PHP_ORACLE" != "no"; then
case $ORACLE_VERSION in
7.0|7.1)
if test -f $ORACLE_DIR/lib/liboracle.s?; then
- AC_ADD_LIBRARY_WITH_PATH(oracle, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(oracle, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
else
- AC_ADD_LIBRARY_WITH_PATH(core, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(cv6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(core, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(cv6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(cv6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(cv6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
if test "$ext_shared" = "yes"; then
ORACLE_SHARED_LIBADD="$ORACLE_DIR/lib/osntab.o $ORACLE_SHARED_LIBADD";
else
LIBS="$ORACLE_DIR/lib/osntab.o $LIBS";
fi
- AC_ADD_LIBRARY_WITH_PATH(ocic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ocic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
if test "`uname -s 2>/dev/null`" = "AIX"; then
if test "$ext_shared" = "yes"; then
ORACLE_SHARED_LIBADD="$ORACLE_SHARED_LIBADD -bI:$ORACLE_DIR/lib/mili.exp"
@@ -94,61 +94,61 @@ if test "$PHP_ORACLE" != "no"; then
7.2)
if test -f $ORACLE_DIR/lib/libclntsh.s?; then
- AC_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
else
- AC_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(c3v6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(c3v6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ora, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
if test "$ext_shared" = "yes"; then
ORACLE_SHARED_LIBADD="$ORACLE_DIR/lib/osntab.o $ORACLE_SHARED_LIBADD";
else
LIBS="$ORACLE_DIR/lib/osntab.o $LIBS";
fi
- AC_ADD_LIBRARY_WITH_PATH(ocic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ocic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
fi
;;
7.3)
if test -f $ORACLE_DIR/lib/libclntsh.s?; then
- AC_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
else
- AC_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(c3v6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(epc, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(generic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(common, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ncr, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(generic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(common, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(ncr, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(c3v6, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(epc, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(generic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(common, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ncr, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(generic, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(common, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ncr, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlnet, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(client, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
fi
;;
8.0)
- AC_ADD_LIBRARY_WITH_PATH(nlsrtl3, "", ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(core4, "", ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(psa, "", ORACLE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, "", ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(core4, "", ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(psa, "", ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
;;
8.1)
- AC_ADD_LIBRARY(clntsh, 1, ORACLE_SHARED_LIBADD)
- AC_ADD_LIBPATH($ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(clntsh, 1, ORACLE_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
;;
*)
AC_MSG_ERROR(Unsupported Oracle version!)
diff --git a/ext/ovrimos/config.m4 b/ext/ovrimos/config.m4
index 9f8da431fd..f495e14a5f 100644
--- a/ext/ovrimos/config.m4
+++ b/ext/ovrimos/config.m4
@@ -17,11 +17,11 @@ if test "$PHP_OVRIMOS" != "no"; then
AC_MSG_ERROR(Please reinstall Ovrimos' libsqlcli - I cannot find sqlcli.h)
fi
- AC_ADD_INCLUDE($OVRIMOS_DIR/include)
+ PHP_ADD_INCLUDE($OVRIMOS_DIR/include)
PHP_SUBST(OVRIMOS_SHARED_LIBADD)
LDFLAGS="$LDFLAGS $ld_runpath_switch$OVRIMOS_DIR/lib -L$OVRIMOS_DIR/lib"
AC_CHECK_LIB(sqlcli, main)
- AC_ADD_LIBRARY_WITH_PATH(sqlcli, $OVRIMOS_DIR/lib, OVRIMOS_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sqlcli, $OVRIMOS_DIR/lib, OVRIMOS_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBSQLCLI,1,[ ])
PHP_EXTENSION(ovrimos, $ext_shared)
diff --git a/ext/pcre/config.m4 b/ext/pcre/config.m4
index afc6afce84..8ae3113b3c 100644
--- a/ext/pcre/config.m4
+++ b/ext/pcre/config.m4
@@ -50,9 +50,9 @@ if test "$PHP_PCRE_REGEX" != "no"; then
AC_MSG_ERROR(Could not find libpcre.a in $PHP_PCRE_REGEX)
fi
- AC_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
- AC_ADD_INCLUDE($PCRE_INCDIR)
+ PHP_ADD_INCLUDE($PCRE_INCDIR)
AC_DEFINE(HAVE_PCRE, 1, [ ])
fi
fi
diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4
index afc6afce84..8ae3113b3c 100644
--- a/ext/pcre/config0.m4
+++ b/ext/pcre/config0.m4
@@ -50,9 +50,9 @@ if test "$PHP_PCRE_REGEX" != "no"; then
AC_MSG_ERROR(Could not find libpcre.a in $PHP_PCRE_REGEX)
fi
- AC_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
- AC_ADD_INCLUDE($PCRE_INCDIR)
+ PHP_ADD_INCLUDE($PCRE_INCDIR)
AC_DEFINE(HAVE_PCRE, 1, [ ])
fi
fi
diff --git a/ext/pdf/config.m4 b/ext/pdf/config.m4
index ff862cbe62..465dc128f0 100644
--- a/ext/pdf/config.m4
+++ b/ext/pdf/config.m4
@@ -20,11 +20,11 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
LIBS=$old_LIBS
LDFLAGS=$old_LDFLAGS
PHP_SUBST(PDFLIB_SHARED_LIBADD)
- AC_ADD_LIBRARY(pdf, PDFLIB_SHARED_LIBADD)
- AC_ADD_LIBRARY(tiff)
- AC_ADD_LIBRARY(png)
- AC_ADD_LIBRARY(jpeg)
- AC_ADD_LIBRARY(z)
+ PHP_ADD_LIBRARY(pdf, PDFLIB_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(tiff)
+ PHP_ADD_LIBRARY(png)
+ PHP_ADD_LIBRARY(jpeg)
+ PHP_ADD_LIBRARY(z)
;;
no)
;;
@@ -45,10 +45,10 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(z,deflate, [PDFLIB_LIBS="-L$withval/lib -lz"],[AC_MSG_RESULT(no)],)
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(z, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(z, $withval/lib)
],[
AC_CHECK_LIB(z,deflate, ,[AC_MSG_RESULT(no, try --with-zlib=<DIR>)],)
- AC_ADD_LIBRARY(z)
+ PHP_ADD_LIBRARY(z)
LIBS="$LIBS -lz"
])
else
@@ -66,11 +66,11 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(jpeg,jpeg_read_header, [PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -ljpeg"],[AC_MSG_RESULT(no)],)
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(jpeg, $withval/lib)
LIBS="$LIBS -L$withval/lib -ljpeg"
],[
AC_CHECK_LIB(jpeg,jpeg_read_header, ,[AC_MSG_RESULT(no, try --with-jpeg-dir=<DIR>)],)
- AC_ADD_LIBRARY(jpeg)
+ PHP_ADD_LIBRARY(jpeg)
LIBS="$LIBS -ljpeg"
])
@@ -83,11 +83,11 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(png,png_create_info_struct, [PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -lpng"],[AC_MSG_RESULT(no)],)
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(png, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(png, $withval/lib)
LIBS="$LIBS -L$withval/lib -lpng"
],[
AC_CHECK_LIB(png,png_create_info_struct, ,[AC_MSG_RESULT(no, try --with-png-dir=<DIR>)],)
- AC_ADD_LIBRARY(png)
+ PHP_ADD_LIBRARY(png)
LIBS="$LIBS -lpng"
])
@@ -100,11 +100,11 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
LIBS="$LIBS -L$withval/lib"
AC_CHECK_LIB(tiff,TIFFOpen, [PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -ltiff"],[AC_MSG_RESULT(no)],)
LIBS=$old_LIBS
- AC_ADD_LIBRARY_WITH_PATH(tiff, $withval/lib)
+ PHP_ADD_LIBRARY_WITH_PATH(tiff, $withval/lib)
LIBS="$LIBS -L$withval/lib -ltiff"
],[
AC_CHECK_LIB(tiff,TIFFOpen, ,[AC_MSG_RESULT(no, Try --with-tiff-dir=<DIR>)],)
- AC_ADD_LIBRARY(tiff)
+ PHP_ADD_LIBRARY(tiff)
LIBS="$LIBS -ltiff"
])
withval=$old_withval
@@ -119,7 +119,7 @@ PHP_ARG_WITH(pdflib,whether to include PDFlib support,
])
LIBS=$old_LIBS
PHP_SUBST(PDFLIB_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(pdf, $withval/lib, PDFLIB_SHARED_LIBADD)
- AC_ADD_INCLUDE($PDFLIB_INCLUDE)
+ PHP_ADD_LIBRARY_WITH_PATH(pdf, $withval/lib, PDFLIB_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($PDFLIB_INCLUDE)
fi ;;
esac
diff --git a/ext/pfpro/config.m4 b/ext/pfpro/config.m4
index 0d23073a7e..3c68048528 100644
--- a/ext/pfpro/config.m4
+++ b/ext/pfpro/config.m4
@@ -34,10 +34,10 @@ if test "$PHP_PFPRO" != "no"; then
AC_MSG_RESULT(found in $PFPRO_LIB_DIR)
- AC_ADD_INCLUDE($PFPRO_INC_DIR)
+ PHP_ADD_INCLUDE($PFPRO_INC_DIR)
PHP_SUBST(PFPRO_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(pfpro, $PFPRO_LIB_DIR, PFPRO_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(pfpro, $PFPRO_LIB_DIR, PFPRO_SHARED_LIBADD)
AC_DEFINE(HAVE_PFPRO, 1, [ ])
diff --git a/ext/pgsql/config.m4 b/ext/pgsql/config.m4
index 3c7c4d19e0..52f3261dc1 100644
--- a/ext/pgsql/config.m4
+++ b/ext/pgsql/config.m4
@@ -9,7 +9,7 @@ PHP_ARG_WITH(pgsql,for PostgreSQL support,
to build as a dl and still specify DIR.])
if test "$PHP_PGSQL" != "no"; then
- AC_EXPAND_PATH($PHP_PGSQL, PHP_PGSQL)
+ PHP_EXPAND_PATH($PHP_PGSQL, PHP_PGSQL)
for i in /usr /usr/local /usr/local/pgsql $PHP_PGSQL; do
PGSQL_INC_CHK(/include)
el[]PGSQL_INC_CHK(/include/pgsql)
@@ -37,7 +37,7 @@ if test "$PHP_PGSQL" != "no"; then
AC_DEFINE(HAVE_PGSQL,1,[ ])
- AC_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR, PGSQL_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR, PGSQL_SHARED_LIBADD)
PHP_EXTENSION(pgsql,$ext_shared)
fi
diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4
index a6c8643896..b1efe640ef 100644
--- a/ext/pspell/config.m4
+++ b/ext/pspell/config.m4
@@ -23,6 +23,6 @@ if test "$PHP_PSPELL" != "no"; then
AC_DEFINE(HAVE_PSPELL,1,[ ])
PHP_SUBST(PSPELL_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD)
- AC_ADD_INCLUDE($PSPELL_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($PSPELL_INCDIR)
fi
diff --git a/ext/qtdom/config.m4 b/ext/qtdom/config.m4
index 7377c51d79..d9d97298e2 100644
--- a/ext/qtdom/config.m4
+++ b/ext/qtdom/config.m4
@@ -12,15 +12,15 @@ case "$withval" in
yes)
if test -f $QTDIR/include/qdom.h; then
AC_MSG_RESULT(yes)
- AC_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
- AC_ADD_INCLUDE($QTDIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
+ PHP_ADD_INCLUDE($QTDIR/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX
elif test -f /usr/lib/qt2/include/qdom.h; then
AC_MSG_RESULT(yes)
- AC_ADD_LIBRARY(qt)
- AC_ADD_INCLUDE(/usr/lib/qt2/include)
+ PHP_ADD_LIBRARY(qt)
+ PHP_ADD_INCLUDE(/usr/lib/qt2/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4
index 20cdde181b..b17ed05552 100644
--- a/ext/readline/config.m4
+++ b/ext/readline/config.m4
@@ -19,16 +19,16 @@ if test "$PHP_READLINE" != "no"; then
if test -z "$READLINE_DIR"; then
AC_MSG_ERROR(Please reinstall readline - I cannot find readline.h)
fi
- AC_ADD_INCLUDE($READLINE_DIR/include)
+ PHP_ADD_INCLUDE($READLINE_DIR/include)
AC_CHECK_LIB(ncurses, tgetent, [
- AC_ADD_LIBRARY_WITH_PATH(ncurses,,READLINE_SHARED_LIBADD)],[
+ PHP_ADD_LIBRARY_WITH_PATH(ncurses,,READLINE_SHARED_LIBADD)],[
AC_CHECK_LIB(termcap, tgetent, [
- AC_ADD_LIBRARY_WITH_PATH(termcap,,READLINE_SHARED_LIBADD)])
+ PHP_ADD_LIBRARY_WITH_PATH(termcap,,READLINE_SHARED_LIBADD)])
])
- AC_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/lib, READLINE_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(readline, $READLINE_DIR/lib, READLINE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/lib, READLINE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(readline, $READLINE_DIR/lib, READLINE_SHARED_LIBADD)
PHP_SUBST(READLINE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
@@ -45,15 +45,15 @@ if test "$PHP_LIBEDIT" != "no"; then
if test -z "$LIBEDIT_DIR"; then
AC_MSG_ERROR(Please reinstall libedit - I cannot find readline.h)
fi
- AC_ADD_INCLUDE($LIBEDIT_DIR/include)
+ PHP_ADD_INCLUDE($LIBEDIT_DIR/include)
AC_CHECK_LIB(ncurses, tgetent, [
- AC_ADD_LIBRARY_WITH_PATH(ncurses,,READLINE__SHARED_LIBADD)],[
+ PHP_ADD_LIBRARY_WITH_PATH(ncurses,,READLINE__SHARED_LIBADD)],[
AC_CHECK_LIB(termcap, tgetent, [
- AC_ADD_LIBRARY_WITH_PATH(termcap,,READLINE_SHARED_LIBADD)])
+ PHP_ADD_LIBRARY_WITH_PATH(termcap,,READLINE_SHARED_LIBADD)])
])
- AC_ADD_LIBRARY_WITH_PATH(edit, $LIBEDIT_DIR/lib, READLINE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(edit, $LIBEDIT_DIR/lib, READLINE_SHARED_LIBADD)
PHP_SUBST(READLINE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBEDIT, 1, [ ])
diff --git a/ext/recode/config.m4 b/ext/recode/config.m4
index 83b0b5b193..d11c86bb53 100644
--- a/ext/recode/config.m4
+++ b/ext/recode/config.m4
@@ -49,12 +49,12 @@ recode_format_table();
AC_MSG_ERROR(Please reinstall recode - I cannot find librecode.a)
fi
- AC_ADD_INCLUDE($RECODE_DIR/$RECODE_INC)
+ PHP_ADD_INCLUDE($RECODE_DIR/$RECODE_INC)
if test "$ext_shared" = "yes"; then
- AC_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD)
PHP_SUBST(RECODE_SHARED_LIBADD)
else
- AC_ADD_LIBRARY_DEFER_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB)
+ PHP_ADD_LIBRARY_DEFER_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB)
fi
AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher])
diff --git a/ext/rpc/java/config.m4 b/ext/rpc/java/config.m4
index 16f0cfeb11..66996ab371 100644
--- a/ext/rpc/java/config.m4
+++ b/ext/rpc/java/config.m4
@@ -28,8 +28,8 @@ AC_ARG_WITH(java,
fi
if test -d $withval/lib/kaffe; then
- AC_ADD_LIBPATH($withval/lib)
- AC_ADD_LIBPATH($withval/lib/kaffe)
+ PHP_ADD_LIBPATH($withval/lib)
+ PHP_ADD_LIBPATH($withval/lib/kaffe)
JAVA_CFLAGS="-DKAFFE"
JAVA_INCLUDE=-I$withval/include/kaffe
@@ -73,10 +73,10 @@ AC_ARG_WITH(java,
if test -f $i/$java_libext; then
JAVA_LIB=java
JAVA_LIBPATH=$i
- test -d $i/hotspot && AC_ADD_LIBPATH($i/hotspot)
- test -d $i/classic && AC_ADD_LIBPATH($i/classic)
- test -d $i/server && AC_ADD_LIBPATH($i/server)
- test -d $i/native_threads && AC_ADD_LIBPATH($i/native_threads)
+ test -d $i/hotspot && PHP_ADD_LIBPATH($i/hotspot)
+ test -d $i/classic && PHP_ADD_LIBPATH($i/classic)
+ test -d $i/server && PHP_ADD_LIBPATH($i/server)
+ test -d $i/native_threads && PHP_ADD_LIBPATH($i/native_threads)
fi
done
@@ -89,14 +89,14 @@ AC_ARG_WITH(java,
fi
AC_DEFINE(HAVE_JAVA,1,[ ])
- AC_ADD_LIBPATH($JAVA_LIBPATH)
+ PHP_ADD_LIBPATH($JAVA_LIBPATH)
JAVA_CFLAGS="$JAVA_CFLAGS '-DJAVALIB=\"$JAVA_LIBPATH/$java_libext\"'"
if test "$PHP_SAPI" != "servlet"; then
PHP_EXTENSION(java, shared)
if test "$PHP_SAPI" = "cgi"; then
- AC_ADD_LIBRARY($JAVA_LIB)
+ PHP_ADD_LIBRARY($JAVA_LIB)
fi
INSTALL_IT="$INSTALL_IT; \$(srcdir)/build/shtool mkdir -p -f -m 0755 \$(libdir)"
diff --git a/ext/sablot/config.m4 b/ext/sablot/config.m4
index b50b921773..aa45004725 100644
--- a/ext/sablot/config.m4
+++ b/ext/sablot/config.m4
@@ -25,10 +25,10 @@ if test "$PHP_SABLOT" != "no"; then
AC_MSG_ERROR(Please reinstall the Sablotron distribution)
fi
- AC_ADD_INCLUDE($SABLOT_DIR/include)
+ PHP_ADD_INCLUDE($SABLOT_DIR/include)
PHP_SUBST(SABLOT_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
if test -z "$PHP_EXPAT_DIR"; then
PHP_EXPAT_DIR=""
@@ -38,16 +38,16 @@ if test "$PHP_SABLOT" != "no"; then
for i in $PHP_EXPAT_DIR $SABLOT_DIR; do
if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.so; then
AC_DEFINE(HAVE_LIBEXPAT2,1,[ ])
- AC_ADD_LIBRARY_WITH_PATH(expat, $i/lib)
- AC_ADD_INCLUDE($i/include)
+ PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib)
+ PHP_ADD_INCLUDE($i/include)
AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING,1,[ ]))
testval=yes
fi
done
if test "$testval" = "no"; then
- AC_ADD_LIBRARY(xmlparse)
- AC_ADD_LIBRARY(xmltok)
+ PHP_ADD_LIBRARY(xmlparse)
+ PHP_ADD_LIBRARY(xmltok)
fi
AC_DEFINE(HAVE_SABLOT,1,[ ])
diff --git a/ext/session/config.m4 b/ext/session/config.m4
index 72c56732e3..ad22cda721 100644
--- a/ext/session/config.m4
+++ b/ext/session/config.m4
@@ -20,8 +20,8 @@ if test "$PHP_MM" != "no"; then
AC_MSG_ERROR(cannot find mm library)
fi
- AC_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/lib, SESSION_SHARED_LIBADD)
- AC_ADD_INCLUDE($MM_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/lib, SESSION_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($MM_DIR/include)
AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
PHP_MODULE_PTR(phpext_ps_mm_ptr)
fi
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4
index bc45789906..28f0aaa747 100644
--- a/ext/snmp/config.m4
+++ b/ext/snmp/config.m4
@@ -27,8 +27,8 @@ PHP_ARG_WITH(snmp,for SNMP support,
SNMP_LIBDIR=$PHP_SNMP/lib
fi
AC_DEFINE(HAVE_SNMP,1,[ ])
- AC_ADD_INCLUDE($SNMP_INCDIR)
- AC_ADD_LIBRARY_WITH_PATH(snmp, $SNMP_LIBDIR, SNMP_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($SNMP_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(snmp, $SNMP_LIBDIR, SNMP_SHARED_LIBADD)
old_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$INCLUDES $CPPFLAGS"
AC_CHECK_HEADERS(default_store.h)
@@ -52,7 +52,7 @@ main() { exit(USE_OPENSSL != 1); }
PHP_EXTENSION(snmp,$ext_shared)
PHP_SUBST(SNMP_SHARED_LIBADD)
AC_CHECK_LIB(kstat, kstat_read, [
- AC_ADD_LIBRARY(kstat,SNMP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(kstat,SNMP_SHARED_LIBADD)
])
SNMP_INCLUDE="-I$SNMP_INCDIR"
fi
diff --git a/ext/swf/config.m4 b/ext/swf/config.m4
index 25809a4822..b05221bb60 100644
--- a/ext/swf/config.m4
+++ b/ext/swf/config.m4
@@ -24,10 +24,10 @@ if test "$PHP_SWF" != "no"; then
libswf.a should be in <swf-dir>/lib)
fi
- AC_ADD_INCLUDE($SWF_DIR/include)
+ PHP_ADD_INCLUDE($SWF_DIR/include)
PHP_SUBST(SWF_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(swf, $SWF_DIR/lib, SWF_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(swf, $SWF_DIR/lib, SWF_SHARED_LIBADD)
AC_DEFINE(HAVE_SWF,1,[ ])
PHP_EXTENSION(swf, $ext_shared)
diff --git a/ext/sybase/config.m4 b/ext/sybase/config.m4
index 784b546edd..7f497daac2 100644
--- a/ext/sybase/config.m4
+++ b/ext/sybase/config.m4
@@ -13,11 +13,11 @@ if test "$PHP_SYBASE" != "no"; then
SYBASE_INCDIR=$PHP_SYBASE/include
SYBASE_LIBDIR=$PHP_SYBASE/lib
fi
- AC_ADD_INCLUDE($SYBASE_INCDIR)
- AC_ADD_LIBRARY_WITH_PATH(sybdb, $SYBASE_LIBDIR, SYBASE_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($SYBASE_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(sybdb, $SYBASE_LIBDIR, SYBASE_SHARED_LIBADD)
PHP_EXTENSION(sybase, $ext_shared)
AC_CHECK_LIB(dnet_stub, dnet_addr,
- [ AC_ADD_LIBRARY_WITH_PATH(dnet_stub,,SYBASE_SHARED_LIBADD)
+ [ PHP_ADD_LIBRARY_WITH_PATH(dnet_stub,,SYBASE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBDNET_STUB,1,[ ])
])
AC_DEFINE(HAVE_SYBASE,1,[ ])
diff --git a/ext/sybase_ct/config.m4 b/ext/sybase_ct/config.m4
index 24e0042b28..bb640d75c0 100644
--- a/ext/sybase_ct/config.m4
+++ b/ext/sybase_ct/config.m4
@@ -18,23 +18,23 @@ AC_ARG_WITH(sybase-ct,
SYBASE_CT_INCDIR=$withval/include
SYBASE_CT_LIBDIR=$withval/lib
fi
- AC_ADD_INCLUDE($SYBASE_CT_INCDIR)
- AC_ADD_LIBPATH($SYBASE_CT_LIBDIR)
- AC_ADD_LIBRARY(cs)
- AC_ADD_LIBRARY(ct)
- AC_ADD_LIBRARY(comn)
- AC_ADD_LIBRARY(intl)
+ PHP_ADD_INCLUDE($SYBASE_CT_INCDIR)
+ PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR)
+ PHP_ADD_LIBRARY(cs)
+ PHP_ADD_LIBRARY(ct)
+ PHP_ADD_LIBRARY(comn)
+ PHP_ADD_LIBRARY(intl)
SYBASE_CT_LIBS="-lcs -lct -lcomn -lintl"
old_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -L$SYBASE_CT_LIBDIR"
AC_CHECK_LIB(tcl, netg_errstr,
- [ AC_ADD_LIBRARY(tcl) ],
- [ AC_ADD_LIBRARY(sybtcl) ],
+ [ PHP_ADD_LIBRARY(tcl) ],
+ [ PHP_ADD_LIBRARY(sybtcl) ],
[ $SYBASE_CT_LIBS ])
AC_CHECK_LIB(insck, insck__getVdate,
- [ AC_ADD_LIBRARY(insck) ])
+ [ PHP_ADD_LIBRARY(insck) ])
AC_CHECK_LIB(insck, bsd_tcp,
- [ AC_ADD_LIBRARY(insck) ])
+ [ PHP_ADD_LIBRARY(insck) ])
LDFLAGS=$old_LDFLAGS
else
AC_MSG_RESULT(no)
diff --git a/ext/vpopmail/config.m4 b/ext/vpopmail/config.m4
index 8d26f5ba42..3870b4270a 100644
--- a/ext/vpopmail/config.m4
+++ b/ext/vpopmail/config.m4
@@ -38,10 +38,10 @@ if test "$PHP_VPOPMAIL" != "no"; then
AC_MSG_RESULT($VPOPMAIL_DIR)
- AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)
+ PHP_ADD_INCLUDE($VPOPMAIL_INC_DIR)
PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
AC_DEFINE(HAVE_VPOPMAIL,1,[Whether you have vpopmail])
AC_DEFINE_UNQUOTED(VPOPMAIL_BIN_DIR,"$VPOPMAIL_BIN_DIR",[vpopmail bin path])
diff --git a/ext/xml/config.m4 b/ext/xml/config.m4
index 3f1321ed74..ec85a84d73 100644
--- a/ext/xml/config.m4
+++ b/ext/xml/config.m4
@@ -30,8 +30,8 @@ if test "$PHP_XML" != "no"; then
LIB_BUILD($ext_builddir/expat,$ext_shared,yes)
LIB_BUILD($ext_builddir/expat/xmlparse,$ext_shared,yes)
LIB_BUILD($ext_builddir/expat/xmltok,$ext_shared,yes)
- AC_ADD_INCLUDE($ext_srcdir/expat/xmltok)
- AC_ADD_INCLUDE($ext_srcdir/expat/xmlparse)
+ PHP_ADD_INCLUDE($ext_srcdir/expat/xmltok)
+ PHP_ADD_INCLUDE($ext_srcdir/expat/xmlparse)
PHP_FAST_OUTPUT($ext_builddir/expat/Makefile $ext_builddir/expat/xmlparse/Makefile $ext_builddir/expat/xmltok/Makefile)
else
@@ -39,14 +39,14 @@ if test "$PHP_XML" != "no"; then
EXPAT_DIR="$withval"
if test -f $EXPAT_DIR/lib/libexpat.a -o -f $EXPAT_DIR/lib/libexpat.so ; then
AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ])
- AC_ADD_INCLUDE($EXPAT_DIR/include)
+ PHP_ADD_INCLUDE($EXPAT_DIR/include)
else
AC_MSG_RESULT(not found)
AC_MSG_ERROR(Please reinstall the expat distribution)
fi
PHP_SUBST(EXPAT_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/lib, EXPAT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/lib, EXPAT_SHARED_LIBADD)
PHP_EXTENSION(xml, $ext_shared)
fi
fi
diff --git a/ext/zlib/config.m4 b/ext/zlib/config.m4
index 5ce1287358..f1509ff19f 100644
--- a/ext/zlib/config.m4
+++ b/ext/zlib/config.m4
@@ -38,9 +38,9 @@ if test "$PHP_ZLIB" != "no"; then
])
PHP_SUBST(ZLIB_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(z, $ZLIB_LIBDIR, ZLIB_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(z, $ZLIB_LIBDIR, ZLIB_SHARED_LIBADD)
- AC_ADD_INCLUDE($ZLIB_INCDIR)
+ PHP_ADD_INCLUDE($ZLIB_INCDIR)
PHP_FOPENCOOKIE
fi