anchor.diff:              --replace '@PHP_LDFLAGS@' ""
           done
   
  -        #[[ -z "$libxml2" ]] || addToSearchPath PATH $libxml2/bin
  +        substituteInPlace ./build/libtool.m4 --replace /usr/bin/file ${file}/bin/file
   
           export EXTENSION_DIR=$out/lib/php/extensions
   
  -        ./buildconf --force
  +        ./buildconf --copy --force
  +
  +        if test -f $src/genfiles; then
  +          ./genfiles
  +        fi
  +      '' + optionalString stdenv.isDarwin ''
  +        substituteInPlace configure --replace "-lstdc++" "-lc++"
         '';
   
         postInstall = ''
  
positive.code:         mkdir -p $dev/bin $dev/share/man/man1
          mv $out/bin/phpize $out/bin/php-config $dev/bin/
          mv $out/share/man/man1/phpize.1.gz \
            $out/share/man/man1/php-config.1.gz \
            $dev/share/man/man1/
        '';
  
        src = fetchurl {
  
negative.code: # pcre functionality is tested in nixos/tests/php-pcre.nix
  { config, lib, stdenv, fetchurl
  , autoconf, automake, bison, file, flex, libtool, pkgconfig, re2c
  , libxml2, readline, zlib, curl, postgresql, gettext
  , openssl, pcre, pcre2, sqlite
  , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC
  , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2
  , gd, freetype, libXpm, libjpeg, libpng, libwebp
  