changeset 4762:53f27fcd3cd9

Make configure --with-database={dbm|gdbm} work again. 2009-12-01 Mike Alexander <mta@umich.edu> * configure.ac: Make --with-database={dbm|gdbm} work again, it's testing $ndbm_h_found which is never set. * configure: ditto
author Mike Alexander <mta@umich.edu>
date Wed, 02 Dec 2009 00:25:59 -0500
parents b604d235f028
children 1de041b8edf7
files ChangeLog configure configure.ac
diffstat 3 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 22 11:31:36 2009 +0100
+++ b/ChangeLog	Wed Dec 02 00:25:59 2009 -0500
@@ -1,3 +1,9 @@
+2009-12-01  Mike Alexander  <mta@umich.edu>
+
+	* configure.ac: Make --with-database={dbm|gdbm} work again, it's
+	testing $ndbm_h_found which is never set.
+	* configure: ditto
+
 2009-11-10  Jerry James  <james@xemacs.org>
 
 	* Makefile.in.in: Remove dynodump support.  Delete out-of-date comment
--- a/configure	Sun Nov 22 11:31:36 2009 +0100
+++ b/configure	Wed Dec 02 00:25:59 2009 -0500
@@ -38578,7 +38578,7 @@
 
 done
 
-  if test "$ndbm_h_found" != "yes"; then
+  if test "x$ndbm_h_file" = "x"; then
     test "$enable_database_gdbm" = "yes" -o \
          "$enable_database_dbm"  = "yes" && \
       { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
@@ -42039,7 +42039,8 @@
 if test -n "$CONFIG_FILES"; then
 
 
-ac_cr='
'
+ac_cr='
+'
 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   ac_cs_awk_cr='\\r'
--- a/configure.ac	Sun Nov 22 11:31:36 2009 +0100
+++ b/configure.ac	Wed Dec 02 00:25:59 2009 -0500
@@ -5035,7 +5035,7 @@
 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then
   ndbm_h_file=""
   AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[])
-  if test "$ndbm_h_found" != "yes"; then
+  if test "x$ndbm_h_file" = "x"; then
     test "$enable_database_gdbm" = "yes" -o \
          "$enable_database_dbm"  = "yes" && \
       XE_DIE("Required DBM support cannot be provided.")