fix configure code, support -option

"-x -y" 1 means means that x option is true