revised configure script for the latest automake
removed warning by using correct sign
ported boost.m4 from cicada
fixed serious bug in swapping..