Search for stellar gravitational collapses with the MACRO detector