File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -1301,17 +1301,14 @@ dnl
1301
1301
dnl Some systems, notably Solaris, cause getcwd() or realpath to fail if a
1302
1302
dnl component of the path has execute but not read permissions.
1303
1303
dnl
1304
- AC_DEFUN ( [ PHP_BROKEN_GETCWD] ,[
1305
- AC_MSG_CHECKING ( [ for broken getcwd] )
1306
- os=$(uname -sr 2>/dev/null)
1307
- case $os in
1308
- SunOS*[ )]
1309
- AC_DEFINE ( [ HAVE_BROKEN_GETCWD] , [ 1] ,
1310
- [ Define to 1 if system has a broken 'getcwd'.] )
1311
- AC_MSG_RESULT ( [ yes] ) ;;
1312
- *[ )]
1313
- AC_MSG_RESULT ( [ no] ) ;;
1314
- esac
1304
+ AC_DEFUN ( [ PHP_BROKEN_GETCWD] , [
1305
+ AC_CACHE_CHECK ( [ for broken getcwd] , [ php_cv_func_getcwd_broken] ,
1306
+ [ AS_CASE ( [ $host_alias] ,
1307
+ [ *solaris*] , [ php_cv_func_getcwd_broken=yes] ,
1308
+ [ php_cv_func_getcwd_broken=no] ) ] )
1309
+ AS_VAR_IF ( [ php_cv_func_getcwd_broken] , [ yes] ,
1310
+ [ AC_DEFINE ( [ HAVE_BROKEN_GETCWD] , [ 1] ,
1311
+ [ Define to 1 if system has a broken 'getcwd'.] ) ] )
1315
1312
] )
1316
1313
1317
1314
dnl
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ if test "$PHP_CGI" != "no"; then
9
9
dnl BSD systems.
10
10
AC_CHECK_MEMBERS ( [ struct sockaddr_un.sun_len] ,,,[ #include <sys/un.h>] )
11
11
12
- AC_MSG_CHECKING ( [ whether cross-process locking is required by accept()] )
13
- AS_CASE ( [ $(uname -sr) ] ,
14
- [ SunOS\ 5.* ] , [
15
- AC_MSG_RESULT ( [ yes] )
16
- AC_DEFINE ( [ USE_LOCKING ] , [ 1 ] ,
17
- [ Define to 1 if cross-process locking is required by 'accept()'. ] )
18
- ] ,
19
- [ AC_MSG_RESULT ( [ no ] ) ] )
12
+ AC_CACHE_CHECK ( [ whether cross-process locking is required by accept()] ,
13
+ [ php_cv_have_cross_process_locking ] ,
14
+ [ AS_CASE ( [ $host_alias ] ,
15
+ [ *solaris* ] , [ php_cv_have_cross_process_locking= yes] ,
16
+ [ php_cv_have_cross_process_locking=no ] ) ] )
17
+ AS_VAR_IF ( [ php_cv_have_cross_process_locking ] , [ yes ] ,
18
+ [ AC_DEFINE ( [ USE_LOCKING ] , [ 1 ] ,
19
+ [ Define to 1 if cross-process locking is required by 'accept()'. ] ) ] )
20
20
21
21
PHP_ADD_MAKEFILE_FRAGMENT([ $abs_srcdir/sapi/cgi/Makefile.frag] )
22
22
You can’t perform that action at this time.
0 commit comments