diff options
| author | Alex Waugh <alexwaugh@php.net> | 2003-01-03 22:05:12 +0000 |
|---|---|---|
| committer | Alex Waugh <alexwaugh@php.net> | 2003-01-03 22:05:12 +0000 |
| commit | ef8d954a0dccc6c3dc14933a29e4b95a4b3e0378 (patch) | |
| tree | 6cf57d7e8004fcaf3ccdfb6d099d72f28c063f05 | |
| parent | c175f3545c6b66232d3a7a78e53a12cddd64184b (diff) | |
| download | php-git-ef8d954a0dccc6c3dc14933a29e4b95a4b3e0378.tar.gz | |
Provide alternative for glibc brokenness test when cross compiling
| -rw-r--r-- | acinclude.m4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e328b9adf5..2e0acaef08 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1457,6 +1457,7 @@ int main(void) { AC_DEFUN([PHP_BROKEN_GLIBC_FOPEN_APPEND],[ AC_MSG_CHECKING([for broken libc stdio]) + AC_CACHE_VAL(have_broken_glibc_fopen_append,[ AC_TRY_RUN([ #include <stdio.h> int main(int argc, char *argv[]) @@ -1483,7 +1484,17 @@ int main(int argc, char *argv[]) } ], [have_broken_glibc_fopen_append=no], -[have_broken_glibc_fopen_append=yes ]) +[have_broken_glibc_fopen_append=yes ], +AC_TRY_COMPILE([ +#include <features.h> +],[ +#if !__GLIBC_PREREQ(2,2) +choke me +#endif +], +[have_broken_glibc_fopen_append=yes], +[have_broken_glibc_fopen_append=no ]) +)]) if test "$have_broken_glibc_fopen_append" = "yes"; then AC_MSG_RESULT(yes) |
