summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-09-17 18:26:50 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-09-17 20:59:16 +0200
commit415cb20dc15ac7e26f267a74a53892a2c176d62c (patch)
treebf604a3e728ae30abb3dbfb8a17aff430a521e32 /acinclude.m4
parent62338a23852e3da56a0e6a56052835f390f608bd (diff)
downloadphp-git-415cb20dc15ac7e26f267a74a53892a2c176d62c.tar.gz
Remove unused HAVE_BROKEN_GLIBC_FOPEN_APPEND
This has not been used since PHP 5.0.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m452
1 files changed, 0 insertions, 52 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 81fb607554..14dcb62b68 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1688,58 +1688,6 @@ AC_DEFUN([PHP_BROKEN_GETCWD],[
])
dnl
-dnl PHP_BROKEN_GLIBC_FOPEN_APPEND
-dnl
-AC_DEFUN([PHP_BROKEN_GLIBC_FOPEN_APPEND], [
- AC_MSG_CHECKING([for broken libc stdio])
- AC_CACHE_VAL(_cv_have_broken_glibc_fopen_append,[
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#include <stdio.h>
-int main(int argc, char *argv[])
-{
- FILE *fp;
- long position;
- char *filename = tmpnam(NULL);
-
- fp = fopen(filename, "w");
- if (fp == NULL) {
- perror("fopen");
- exit(2);
- }
- fputs("foobar", fp);
- fclose(fp);
-
- fp = fopen(filename, "a+");
- position = ftell(fp);
- fclose(fp);
- unlink(filename);
- if (position == 0)
- return 1;
- return 0;
-}
-]])],
-[_cv_have_broken_glibc_fopen_append=no],
-[_cv_have_broken_glibc_fopen_append=yes],
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#include <features.h>
-]], [[
-#if !__GLIBC_PREREQ(2,2)
-choke me
-#endif
-]])],
-[_cv_have_broken_glibc_fopen_append=yes],
-[_cv_have_broken_glibc_fopen_append=no])
-])])
-
- if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_BROKEN_GLIBC_FOPEN_APPEND,1, [Define if your glibc borks on fopen with mode a+])
- else
- AC_MSG_RESULT(no)
- fi
-])
-
-dnl
dnl PHP_BROKEN_GCC_STRLEN_OPT
dnl
dnl Early releases of GCC 8 shipped with a strlen() optimization bug, so they