It is the same problem with ldap (for me), the configure test fails
because probably there is a serious bug somewhere:
This is what configure tests:
$ gcc -o conftest.exe -g -O2 -lldap -llber conftest.c -lresolv -lm -lxml2 -lz -liconv
/tmp/ccw7ffQY.o(.text+0x1d): In function `main':
/php/ldaptest.c:299: undefined reference to `_ldap_bind_s'
/tmp/ccw7ffQY.o(.data+0x0):/php/ldaptest.c:298: undefined reference to `_ldap_bind_s'
collect2: ld returned 1 exit status
And this is how it should be:
$ gcc -o conftest.exe -g -O2 conftest.c -lldap -llber -lresolv -lm -lxml2 -lz -liconv
Since the test fails configure thinks that db or ldap libraries are
not available.