checking for bam.h... yes
checking if samtools version >= 0.1.3... ./configure: line 6696: elseif: command not found
configure: WARNING: No functioning samtools found
configure: WARNING: Gap5/tg_index will have reduced functionality
checking for staden-io_lib-config... no
The syntax is wrong and also there should be "; then" at the end of the line.