summaryrefslogtreecommitdiff
path: root/TSRM/tsrm.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-30 00:48:45 +0000
committerSascha Schumann <sas@php.net>1999-12-30 00:48:45 +0000
commit85a5a2873ed2b3a82f05e833426145233d902038 (patch)
tree202ffc2f38f4c81fa631c1c91d9408414e0d7fa1 /TSRM/tsrm.m4
parentf62473e8c1b9e102fc640496ccf068bfcf9e75bf (diff)
downloadphp-git-85a5a2873ed2b3a82f05e833426145233d902038.tar.gz
Let check succeed on systems which don't need special flags for pthreads.
Also change the message to be more informative.
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r--TSRM/tsrm.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4
index 0eea9be2fa..96fe78a22f 100644
--- a/TSRM/tsrm.m4
+++ b/TSRM/tsrm.m4
@@ -53,21 +53,21 @@ if test -n "$GCC"; then
break
fi
done
- AC_CHECK_FUNCS(pthread_kill)
fi
+AC_CHECK_FUNCS(pthread_kill)
+
if test "$ac_cv_func_pthread_kill" != "yes"; then
CFLAGS="$old_CFLAGS"
-dnl Fall back to the standard -lpthread
AC_CHECK_LIB(pthread, pthread_kill)
unset ac_cv_func_pthread_kill
AC_CHECK_FUNCS(pthread_kill)
if test "$ac_cv_func_pthread_kill" != "yes"; then
- AC_MSG_ERROR(You need Pthreads to build TSRM on UNIX.)
+ AC_MSG_ERROR(Your system seems to lack POSIX threads.)
fi
fi
-AC_DEFINE(PTHREADS, [], Whether to use Pthreads)
+AC_DEFINE(PTHREADS, 1, Whether to use Pthreads)
AC_MSG_CHECKING(for POSIX threads)
AC_MSG_RESULT(yes)