remove flex docdir configure switch