From 0b6aa999536868680819aa742f27c8c34d7c52ff Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 28 Jun 2024 00:47:28 +0200 Subject: [PATCH] Rely on Autoconf's automatic removal of conftest* files When test programs are finished or when configure script is interrupted, Autoconf cleans up all conftest* files. --- build/php.m4 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build/php.m4 b/build/php.m4 index 6efd3bc88485..8e398d8627a4 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1124,7 +1124,7 @@ AC_DEFUN([PHP_DOES_PWRITE_WORK],[ #include $1 int main(void) { - int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + int fd = open("conftest_pwrite", O_WRONLY|O_CREAT, 0600); if (fd < 0) return 1; if (pwrite(fd, "text", 4, 0) != 4) return 1; @@ -1148,7 +1148,7 @@ dnl dnl Internal. dnl AC_DEFUN([PHP_DOES_PREAD_WORK],[ - echo test > conftest_in + echo test > conftest_pread AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -1159,7 +1159,7 @@ AC_DEFUN([PHP_DOES_PREAD_WORK],[ $1 int main(void) { char buf[3]; - int fd = open("conftest_in", O_RDONLY); + int fd = open("conftest_pread", O_RDONLY); if (fd < 0) return 1; if (pread(fd, buf, 2, 0) != 2) return 1; /* Linux glibc breakage until 2.2.5 */ @@ -1173,7 +1173,6 @@ $1 ],[ ac_cv_pread=no ]) - rm -f conftest_in ]) dnl