default_pre_build      &&
cd  $SOURCE_DIRECTORY  &&
patch  -p0  <  $SCRIPT_DIRECTORY/double-fclose-fix.patch  &&
patch  -p1  <  $SCRIPT_DIRECTORY/gcc-3.4.patch            &&
cp  $SCRIPT_DIRECTORY/config.sub  .                       &&
if ! is_depends_enabled $SPELL linuxdoc-tools; then
  find -iname "*.sgml" -exec rm {} \; &&
  sed -i -e 's/kbd.FAQ.html//' -e 's/kbd.FAQ.txt//' \
         -e 's/lct.html//' -e 's/lct.txt//' doc/Makefile*
fi &&
# fixes bug #14434 for gcc 4.2 (4.3 doesn't need it)
sedit "7i#include <locale.h>" include/lct/local.h         &&
sedit "s/examples//"  Makefile.am                         &&
sedit "s/examples//"  Makefile.in
