summaryrefslogtreecommitdiff
path: root/ext/oci8
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-03-14 23:21:17 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-18 02:11:23 +0100
commitccc29473ecdb07d9735e7b6361b7daeec6c3ede1 (patch)
treeb359c40cbd61053f672c598ec0275ae9e7938de2 /ext/oci8
parentb6f9ade9f201c852430689caf8ed8af0ded0159a (diff)
downloadphp-git-ccc29473ecdb07d9735e7b6361b7daeec6c3ede1.tar.gz
Sync AC_CHECK_SIZEOF m4 macro calls
- AC_CHECK_SIZEOF is now called mostly only in PHP_CHECK_STDINT_TYPES() macro except for some parts checking for the 32 or 64 bit architecture. - SIZEOF_CHAR removed since it is always 1 - ZEND_BIN_ID is now of a more logical pattern `BIN_48888` on 64bit architectures and `BIN_44444` on 32bit instead of literal string `BIN_SIZEOF_CHAR48888` on 64bit and `BIN_SIZEOF_CHAR44444` on 32bit. The unneeded SIZEOF_CHAR part has been removed. - XMLRPC_TYPE_CHECKS removed - The `long long int` is the same as `long long` and redundant checks removed accordingly. - Removed PHP_CHECK_64BIT macro. Checking if current platform is 64bit or not can be also done simply by using a check of the long type on place. This removes redundant m4 macro PHP_CHECK_64BIT.
Diffstat (limited to 'ext/oci8')
-rw-r--r--ext/oci8/config.m411
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4
index 00a51c815b..d534f09107 100644
--- a/ext/oci8/config.m4
+++ b/ext/oci8/config.m4
@@ -239,18 +239,17 @@ if test "$PHP_OCI8" != "no"; then
fi
dnl Set some port specific directory components for use later
-
- AC_CHECK_SIZEOF(long int, 4)
- AC_MSG_CHECKING([checking if we're on a 64-bit platform])
- if test "$ac_cv_sizeof_long_int" = "4"; then
+ AC_CHECK_SIZEOF([long])
+ AC_MSG_CHECKING([if we're at 64-bit platform])
+ AS_IF([test "$ac_cv_sizeof_long" -eq 4],[
AC_MSG_RESULT([no])
PHP_OCI8_OH_LIBDIR=lib32
PHP_OCI8_IC_LIBDIR_SUFFIX=""
- else
+ ],[
AC_MSG_RESULT([yes])
PHP_OCI8_OH_LIBDIR=lib
PHP_OCI8_IC_LIBDIR_SUFFIX=64
- fi
+ ])
dnl Determine if the user wants to use Oracle Instant Client libraries