diff options
author | Alex Waugh <alexwaugh@php.net> | 2001-12-23 00:41:27 +0000 |
---|---|---|
committer | Alex Waugh <alexwaugh@php.net> | 2001-12-23 00:41:27 +0000 |
commit | 3b091175357cf54e2c38b50519430ff6c4a1cf94 (patch) | |
tree | d3c567b3de10e4a6c904b7d8182ba53c5edb6f21 /ext/mysql | |
parent | ebe7376243b80e722f9ac7f6a23abc21d89661ab (diff) | |
download | php-git-3b091175357cf54e2c38b50519430ff6c4a1cf94.tar.gz |
Cache results of check for int8
Diffstat (limited to 'ext/mysql')
-rw-r--r-- | ext/mysql/libmysql/acinclude.m4 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/mysql/libmysql/acinclude.m4 b/ext/mysql/libmysql/acinclude.m4 index 0fb030b803..957c87fb27 100644 --- a/ext/mysql/libmysql/acinclude.m4 +++ b/ext/mysql/libmysql/acinclude.m4 @@ -297,7 +297,8 @@ fi AC_DEFUN(MYSQL_CHECK_INT_8_16_32, [AC_MSG_CHECKING([for int8]) -AC_TRY_RUN([ +AC_CACHE_VAL(ac_cv_int8, +[AC_TRY_RUN([ #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif @@ -315,10 +316,15 @@ int main() int8 i; return 0; } -], AC_DEFINE(HAVE_INT_8_16_32, , [ ]) AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) -) +], ac_cv_int8=yes, ac_cv_int8=no, ac_cv_int8=no)]) +AC_MSG_RESULT($ac_cv_int8) +if test "$ac_cv_int8" = "yes" +then + AC_DEFINE(HAVE_INT_8_16_32,,[ ]) +fi ]) + AC_DEFUN(MYSQL_HEADER_CHECKS,[ AC_HEADER_STDC AC_CHECK_HEADERS(sgtty.h sys/ioctl.h \ |