anchor.diff:        echo gl_cv_func_wcwidth_works=yes > cachefile
         configureFlags="$configureFlags --cache-file=`pwd`/cachefile"
       fi
  -  '' + lib.optionalString stdenv.isCygwin ''
  -    sed -i -e "s/\(am_libgettextlib_la_OBJECTS = \)error.lo/\\1/" gettext-tools/gnulib-lib/Makefile.in
     '';
   
  -  nativeBuildInputs = [ xz xz.bin ] ++ stdenv.lib.optional (!stdenv.isLinux) libiconv; # HACK, see #10874 (and 14664)
  +  nativeBuildInputs = [ xz xz.bin ] ++ stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv; # HACK, see #10874 (and 14664)
   
     enableParallelBuilding = true;
   
  
positive.code:   LDFLAGS = if stdenv.isSunOS then "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec" else "";
  
    configureFlags = [ "--disable-csharp" "--with-xz" ]
       ++ lib.optionals stdenv.isCygwin [
              "--disable-java"
              "--disable-native-java"
              # Share the cache among the various `configure' runs.
              "--config-cache"
              "--with-included-gettext"
              "--with-included-glib"
              "--with-included-libcroco"
          ]
       # avoid retaining reference to CF during stdenv bootstrap
       ++ lib.optionals stdenv.isDarwin [
              "gt_cv_func_CFPreferencesCopyAppValue=no"
  
negative.code:    substituteInPlace gettext-tools/projects/KDE/trigger --replace "/bin/pwd" pwd
     substituteInPlace gettext-tools/projects/GNOME/trigger --replace "/bin/pwd" pwd
     substituteInPlace gettext-tools/src/project-id --replace "/bin/pwd" pwd
    '' + lib.optionalString hostPlatform.isCygwin ''
      sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
      sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
    '';
  
    # On cross building, gettext supposes that the wchar.h from libc
  