mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Autotools: Append rt library to FPM_EXTRA_LIBS (#15059)
This appends the possible rt library as needed on Solaris <= 10 to FPM_EXTRA_LIBS instead of the global LIBS variable for all SAPIs to have cleaner build. The possible required rt library for other SAPIs is also checked in the configure.ac.
This commit is contained in:
parent
82479e89d0
commit
2f0bb9293c
1 changed files with 11 additions and 5 deletions
|
@ -6,11 +6,17 @@ PHP_ARG_ENABLE([fpm],
|
|||
[no])
|
||||
|
||||
dnl Configure checks.
|
||||
AC_DEFUN([PHP_FPM_CLOCK],
|
||||
[AC_CHECK_FUNCS([clock_gettime],,
|
||||
[AC_SEARCH_LIBS([clock_gettime], [rt],
|
||||
[ac_cv_func_clock_gettime=yes
|
||||
AC_DEFINE([HAVE_CLOCK_GETTIME], [1])])])
|
||||
AC_DEFUN([PHP_FPM_CLOCK], [
|
||||
AC_CHECK_FUNCS([clock_gettime],, [
|
||||
LIBS_save=$LIBS
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [
|
||||
ac_cv_func_clock_gettime=yes
|
||||
AC_DEFINE([HAVE_CLOCK_GETTIME], [1])
|
||||
AS_VAR_IF([ac_cv_search_clock_gettime], ["none required"],,
|
||||
[AS_VAR_APPEND([FPM_EXTRA_LIBS], [" $ac_cv_search_clock_gettime"])])
|
||||
])
|
||||
LIBS=$LIBS_save
|
||||
])
|
||||
|
||||
AS_VAR_IF([ac_cv_func_clock_gettime], [no],
|
||||
[AC_CACHE_CHECK([for clock_get_time], [php_cv_func_clock_get_time],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue