From 106638417f787bf077db15294cf54e068113e5c8 Mon Sep 17 00:00:00 2001 From: Glenn Burkhardt Date: Sun, 22 Jun 2003 23:58:07 +0000 Subject: [PATCH] Allowed gdbm as substitute for Berkeley db1/ndbm.h libdb1 (check for gdbm/ndbm.h, libgdbm now); send only stdout to /dev/null when checking for 'broken vi', this allows 'vim' on Solaris to work, since 'vim' closes stdin and uses stderr for input when running a script. --- configure.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 3d768e4..f029fd6 100644 --- a/configure.in +++ b/configure.in @@ -364,7 +364,7 @@ AC_SUBST(editorpath)dnl dnl Check for broken vi AC_CACHE_CHECK(for broken vi, nmh_cv_attvibug, [if echo 'r /nonexist-file -q' | ex > /dev/null 2>&1 +q' | ex > /dev/null then nmh_cv_attvibug=no else @@ -553,12 +553,15 @@ dnl -------------- dnl Checks for ndbm AC_CHECK_FUNC(dbm_open, , AC_CHECK_LIB(ndbm, dbm_open, , - AC_CHECK_LIB(dbm, dbm_open))) + AC_CHECK_LIB(dbm, dbm_open, , + AC_CHECK_LIB(db1, dbm_open, , + AC_CHECK_LIB(gdbm, dbm_open))))) dnl ---------------- dnl CHECK FOR NDBM.H dnl ---------------- -AC_CHECK_HEADERS(db1/ndbm.h) + +AC_CHECK_HEADERS(db1/ndbm.h gdbm/ndbm.h, break, ) dnl ---------------- dnl CHECK FOR HESIOD -- 1.7.10.4