Fixed +default+pgsql will not configure with pdo drivers issue, and added recursive and duplicate options check.

Signed-off-by: Rack Lin <racklin@gmail.com>