summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-07-02 01:00:14 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-07-05 23:26:20 +0200
commit1c9e8e8f6a7d0180d312aa76ae87435619935780 (patch)
tree40abd90739be7167838a74877b1603d66f0cd6b6 /TSRM
parent30441e65dddb13c9c7a63019738f0a767a18a3d4 (diff)
downloadphp-git-1c9e8e8f6a7d0180d312aa76ae87435619935780.tar.gz
Remove PTHREADS_ASSIGN_VARS
This simplifies TSRM build steps a bit and avoids doing unnecessary steps: - The `PTHREADS_CHECK_COMPILE` can called inside the for loops only since this is only where the `$pthreads_checked` variable is used. - Assigning variables can be then done only in the configure.ac once. - use `m4_include()` instead of the `sinclude()` in the middle of the build steps. - The `$threads_result` variable is not used in the code or in extensions.
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/threads.m428
1 files changed, 0 insertions, 28 deletions
diff --git a/TSRM/threads.m4 b/TSRM/threads.m4
index dde7f17257..dc5719bbec 100644
--- a/TSRM/threads.m4
+++ b/TSRM/threads.m4
@@ -102,13 +102,6 @@ dnl -qthreaded AIX cc V5
dnl -threads gcc (HP-UX)
dnl
AC_DEFUN([PTHREADS_CHECK],[
-save_CFLAGS=$CFLAGS
-save_LIBS=$LIBS
-PTHREADS_ASSIGN_VARS
-PTHREADS_CHECK_COMPILE
-LIBS=$save_LIBS
-CFLAGS=$save_CFLAGS
-
AC_CACHE_CHECK(for pthreads_cflags,ac_cv_pthreads_cflags,[
ac_cv_pthreads_cflags=
if test "$pthreads_working" != "yes"; then
@@ -144,25 +137,4 @@ fi
if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then
pthreads_working="yes"
fi
-
-if test "$pthreads_working" = "yes"; then
- threads_result="POSIX-Threads found"
-else
- threads_result="POSIX-Threads not found"
-fi
-])
-
-dnl
-dnl PTHREADS_ASSIGN_VARS
-dnl
-dnl Adds pthreads linker and compiler flags.
-dnl
-AC_DEFUN([PTHREADS_ASSIGN_VARS],[
-if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
-fi
-
-if test -n "$ac_cv_pthreads_cflags"; then
- CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
-fi
])