export EMXSHELL=ksh
export ac_executable_extensions=".exe"
# !!!
export TEX=tex386


#!/bin/sh
programs="sed install-info /usr/bin/perl patchux2"
files="bin/aclocal bin/aclocal-1.7 bin/automake bin/automake-1.7"

for i in $programs; do
  $i --version >/dev/null 2>/dev/null
  if [ "$?" = 0 ]; then
    echo "program '$i' is available and works"
  else
    echo "program '$i' not found"
    echo "you need '$i' otherwise automake will not work"
    exit 1
  fi
done

for i in $files; do
  patchux2 --level 2 $i
done


