[Date Prev][Date Next] [Chronological] [Thread] [Top]

Configure doesn't properly detect Berkeley DB 4.x (ITS#2148)

Full_Name: Evan Cofsky
Version: 2.1.8
OS: Linux/Slackware
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

The configure script test for Berkeley DB will not correctly detect Berkeley DB
if it is installed in a location that is not on the standard compiler include
search path.  Setting the environment variables CFLAGS has no effect since the
configure script calls the pre-processor directly, and evidently the CFLAGS are
not used when called in this fashion.

This patch fixes the problem, although probably not in an elegant fashion.  It
may be better to make the change to the definition of ac_cpp, since this may
impact other tests which I have not had problems with:

--- openldap-2.1.8.old/configure        Fri Oct 18 12:05:20 2002               

+++ openldap-2.1.8/configure    Sat Oct 19 12:25:42 2002                       

@@ -18448,10 +18448,10 @@



-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |                                   

+if (eval "$ac_cpp $CFLAGS conftest.$ac_ext") 2>&5 |                           

   egrep "__db_version_compat" >/dev/null 2>&1; then                           

   rm -rf conftest*                                                            



   rm -rf conftest*