Skip to content

Instantly share code, notes, and snippets.

@andypost
Created August 18, 2021 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypost/23e341a4e5afd29d1779393403958a69 to your computer and use it in GitHub Desktop.
Save andypost/23e341a4e5afd29d1779393403958a69 to your computer and use it in GitHub Desktop.
checking for setproctitle... no
checking for sys/pstat.h... no
checking for PS_STRINGS... no
checking for CLI build... yes
checking for embedded SAPI library support... no
checking for FPM build... program
checking for clearenv... yes
checking for setproctitle... (cached) no
checking for setproctitle_fast... no
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for prctl... yes
checking for clock_gettime... yes
checking for ptrace... yes
checking whether ptrace works... yes
checking for proc mem file... mem
checking if gcc supports __sync_bool_compare_and_swap... yes
checking for TCP_INFO... yes
checking for sysconf... yes
checking for times... yes
checking for kqueue... no
checking for port framework... no
checking for /dev/poll... no
checking for epoll... yes
checking for select... yes
checking for clang fuzzer SAPI... no
checking for LiteSpeed support... no
checking for phpdbg support... yes
checking for phpdbg debug build... no
checking for phpdbg readline support... no
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking for phpdbg and readline integration... disabled
checking for CGI build... yes
checking for sun_len in sys/un.h... no
checking whether cross-process locking is required by accept()... no
checking for chosen SAPI module... apache2handler
checking for executable SAPI binaries... cli fpm phpdbg cgi
Running system checks
@andypost
Copy link
Author

+       _build --enable-phpdbg=program \
+               --enable-fpm=program \
+               --with-pear=/usr/share/$pkgname \
+               --with-apxs2 \
+               --enable-embed=program

@andypost
Copy link
Author

andypost commented Aug 18, 2021

FTW https://github.com/php/php-src/blob/master/build/php.m4#L855

AC_DEFUN([PHP_SELECT_SAPI],[
  if test "$2" = "program"; then
    PHP_BINARIES="$PHP_BINARIES $1"
  elif test "$PHP_SAPI" != "none"; then
    AC_MSG_ERROR([
+--------------------------------------------------------------------+
|                        *** ATTENTION ***                           |
|                                                                    |
| You've configured multiple SAPIs to be built. You can build only   |
| one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
+--------------------------------------------------------------------+
])
  else
    PHP_SAPI=$1
  fi

@andypost
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment