Skip to content

Commit 7384cdf

Browse files
committed
get rid of find completely
1 parent 2cce8d7 commit 7384cdf

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

sapi/fpm/config.m4

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,8 @@ if test "$PHP_FPM" != "no"; then
653653
SAPI_FPM_PATH=sapi/fpm/php-fpm
654654
PHP_SUBST(SAPI_FPM_PATH)
655655

656-
mkdir -p sapi/fpm/fpm
657-
PHP_FPM_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c \! -name fpm_trace*.c \) -exec printf "{} " \;`
658-
659-
if test "$fpm_trace_type" ; then
660-
PHP_FPM_TRACE_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name fpm_trace.c -or -name fpm_trace_$fpm_trace_type.c \) -exec printf "{} " \;`
656+
if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
657+
PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
661658
fi
662659

663660
PHP_FPM_CFLAGS="$LIBEVENT_CFLAGS -I$abs_srcdir/sapi/fpm"
@@ -666,6 +663,29 @@ if test "$PHP_FPM" != "no"; then
666663
PHP_SUBST(SAPI_EXTRA_LIBS)
667664

668665
INSTALL_IT=":"
666+
PHP_FPM_FILES="fpm/fastcgi.c \
667+
fpm/fpm.c \
668+
fpm/fpm_children.c \
669+
fpm/fpm_cleanup.c \
670+
fpm/fpm_clock.c \
671+
fpm/fpm_conf.c \
672+
fpm/fpm_env.c \
673+
fpm/fpm_events.c \
674+
fpm/fpm_main.c \
675+
fpm/fpm_php.c \
676+
fpm/fpm_php_trace.c \
677+
fpm/fpm_process_ctl.c \
678+
fpm/fpm_request.c \
679+
fpm/fpm_shm.c \
680+
fpm/fpm_shm_slots.c \
681+
fpm/fpm_signals.c \
682+
fpm/fpm_sockets.c \
683+
fpm/fpm_stdio.c \
684+
fpm/fpm_unix.c \
685+
fpm/fpm_worker_pool.c \
686+
fpm/xml_config.c \
687+
fpm/zlog.c \
688+
"
669689
PHP_SELECT_SAPI(fpm, program, $PHP_FPM_FILES $PHP_FPM_TRACE_FILES, $PHP_FPM_CFLAGS, '$(SAPI_FPM_PATH)')
670690

671691
case $host_alias in

0 commit comments

Comments
 (0)