diff options
author | Sascha Schumann <sas@php.net> | 1999-12-17 13:36:15 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-17 13:36:15 +0000 |
commit | 91549cfa4fe0e8aac9e56d0a603de6d9d22c8396 (patch) | |
tree | bdfc775b76697f94c9bcc7f68b71c13846e742ca /TSRM/tsrm.m4 | |
parent | 7fe808ea028595d6bc1a72d016d5420845a57ae2 (diff) | |
download | php-git-91549cfa4fe0e8aac9e56d0a603de6d9d22c8396.tar.gz |
Move config code into separate file
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r-- | TSRM/tsrm.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4 new file mode 100644 index 0000000000..352b4654e1 --- /dev/null +++ b/TSRM/tsrm.m4 @@ -0,0 +1,25 @@ + +AC_DEFUN(TSRM_BASIC_CHECKS,[ + +AC_REQUIRE([AC_PROG_CC])dnl +dnl AC_REQUIRE([AM_PROG_CC_STDC])dnl +AC_REQUIRE([AC_PROG_CC_C_O])dnl +AC_REQUIRE([AC_PROG_RANLIB])dnl + +AC_CHECK_HEADERS(stdarg.h) + +]) + +AC_DEFUN(TSRM_PTHREAD,[ + +AC_CHECK_LIB(c_r, pthread_kill) +AC_CHECK_LIB(pthread, 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.) +fi + +AC_DEFINE(PTHREADS, [], Whether to use Pthreads) +]) |