check config.status; you probably got some warning/error from the compiler that caused configure not to detect a valid db library. Pierangelo.