Set the CKSEL fuses for an external clock source instead of an external crystal. Note that it will require that 16mhz squarewave to be there, otherwise it won't work and you won't be able to program it to use a different clock source.
I would bootload it normally, then set the low fuses via avrdude from command line to change from crystal to external clock.