: doSH is obsolete. Just use Configure -S : if test -f Configure ; then TOP=.; elif test -f ../Configure ; then TOP=..; elif test -f ../../Configure ; then TOP=../..; elif test -f ../../../Configure ; then TOP=../../..; elif test -f ../../../../Configure ; then TOP=../../../..; else echo "Can't find Configure" ; exit 1 fi sh $TOP/Configure -S