comparison configure.ac @ 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 aa5ed11f473b
children 5460287a3327
comparison
equal deleted inserted replaced
4761:b604d235f028 4762:53f27fcd3cd9
5033 dnl Check for ndbm.h, required for either kind of DBM support. 5033 dnl Check for ndbm.h, required for either kind of DBM support.
5034 dnl #### Should we check for gdbm.h, too? (Seen on MacPorts.) 5034 dnl #### Should we check for gdbm.h, too? (Seen on MacPorts.)
5035 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then 5035 if test "$enable_database_gdbm $enable_database_dbm" != "no no"; then
5036 ndbm_h_file="" 5036 ndbm_h_file=""
5037 AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[]) 5037 AC_CHECK_HEADERS([ndbm.h gdbm/ndbm.h],[ndbm_h_file=$ac_header; break;],[],[])
5038 if test "$ndbm_h_found" != "yes"; then 5038 if test "x$ndbm_h_file" = "x"; then
5039 test "$enable_database_gdbm" = "yes" -o \ 5039 test "$enable_database_gdbm" = "yes" -o \
5040 "$enable_database_dbm" = "yes" && \ 5040 "$enable_database_dbm" = "yes" && \
5041 XE_DIE("Required DBM support cannot be provided.") 5041 XE_DIE("Required DBM support cannot be provided.")
5042 enable_database_gdbm=no enable_database_dbm=no] 5042 enable_database_gdbm=no enable_database_dbm=no]
5043 fi 5043 fi