anchor.diff:      "--disable-mmx-optimization"
       "--${if static then "enable" else "disable"}-staticlibs"
       "--${if !static then "enable" else "disable"}-sharedlibs"
  -  ];
  +  ] ++ lib.optional withX "--with-x";
   
     meta = with lib; {
       homepage = "http://www.afterstep.org/afterimage/";
  
positive.code:   patchFlags = [ "-p0" ];
  
    nativeBuildInputs = [ autoreconfHook ];
    buildInputs = [ giflib libjpeg libpng zlib ];
  
    preConfigure = ''
      rm -rf {libjpeg,libpng,libungif,zlib}/
  
negative.code: { lib, stdenv, fetchurl, fetchpatch, autoreconfHook, giflib, libjpeg, libpng, libX11, zlib
  , static ? stdenv.hostPlatform.isStatic
  , withX ? !stdenv.isDarwin }:
  
  stdenv.mkDerivation {
    pname = "libAfterImage";
  