File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,21 @@ if test "$PHP_PCNTL" != "no"; then
25
25
] ) )
26
26
27
27
dnl if unsupported, -1 means automatically ENOSYS in this context
28
- AC_MSG_CHECKING ( [ if sched_getcpu is supported] )
29
- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
28
+ AC_CACHE_CHECK ( [ if sched_getcpu is supported] , [ php_cv_func_sched_getcpu ] ,
29
+ [ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [
30
30
#include <sched.h>
31
31
int main(void) {
32
32
if (sched_getcpu() == -1) {
33
33
return 1;
34
34
}
35
35
return 0;
36
36
}
37
- ] ] ) ] ,[
38
- AC_MSG_RESULT ( yes )
39
- AC_DEFINE ( [ HAVE_SCHED_GETCPU] ,1 ,[ Whether sched_getcpu is properly supported] )
40
- ] ,[
41
- AC_MSG_RESULT ( no )
42
- ] ,[
43
- AC_MSG_RESULT ( [ no, cross-compiling] )
44
- ] )
37
+ ] ) ] ,
38
+ [ php_cv_func_sched_getcpu=yes] ,
39
+ [ php_cv_func_sched_getcpu=no] ,
40
+ [ php_cv_func_sched_getcpu=no] ) ] )
41
+ AS_VAR_IF ( [ php_cv_func_sched_getcpu] , [ yes] ,
42
+ [ AC_DEFINE ( [ HAVE_SCHED_GETCPU] , [ 1] , [ Whether sched_getcpu is properly supported] ) ] )
45
43
46
44
AC_CHECK_TYPE ( [ siginfo_t] ,[ PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"] ,,[ #include <signal.h>] )
47
45
You can’t perform that action at this time.
0 commit comments