Make it a bit less verbose by using endif()
Respect ./configure --xxxdir etc.