Index: acinclude.m4 =================================================================== RCS file: /repository/php-src/acinclude.m4,v retrieving revision 1.272 diff -u -r1.272 acinclude.m4 --- acinclude.m4 18 Jul 2004 12:03:51 -0000 1.272 +++ acinclude.m4 2 Aug 2004 10:54:20 -0000 @@ -1930,4 +1930,21 @@ dnl See ADD_EXTENSION_DEP in win32 build AC_DEFUN(PHP_ADD_EXTENSION_DEP, []) +dnl +dnl PHP_CHECK_64BIT([do if 32], [do if 64]) +dnl This macro is for is used to detect if we're at 64-bit platform or not. +dnl It could be useful for those external libs, that have different precompiled +dnl versions in different directories. +dnl +AC_DEFUN(PHP_CHECK_64BIT,[ + AC_MSG_CHECKING([checking if we're at 64-bit platform]) + AC_CHECK_SIZEOF(int) + if test "$ac_cv_sizeof_int" = "4" ; then + AC_MSG_RESULT([no]) + $1 + else + AC_MSG_RESULT([yes]) + $2 + fi +])