X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fposix%2Fndbm.m4;h=7b04504536b60495f9dc4afebff8b5cebc95c634;hp=bd2617b60e9cffc0ae8bcf7531ebbe6ed87f7930;hb=5ed7e51eb19a16f6f4e280abc33a2a4281b45166;hpb=f694bfb2207961302fa2a34177b50b6a5b85f817 diff --git a/m4/posix/ndbm.m4 b/m4/posix/ndbm.m4 index bd2617b..7b04504 100644 --- a/m4/posix/ndbm.m4 +++ b/m4/posix/ndbm.m4 @@ -2,6 +2,10 @@ PSI_CHECK_NDBM() { PSI_CONFIG_POSIX(ndbm, ndbm.h gdbm-ndbm.h) PHP_CHECK_FUNC(dbm_open, gdbm_compat) + # See http://www.gnu.org.ua/software/gdbm/manual/html_section/gdbm_19.html + if expr X"$LIBS" : "X.*-lgdbm_compat" >/dev/null; then + LIBS="-lgdbm $LIBS" + fi PSI_STRUCT(datum, [ void *dptr,