bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: "Cannot find BerkelyDB" configure 2.0.1


From: Benny Kjellgren
Subject: RE: "Cannot find BerkelyDB" configure 2.0.1
Date: Fri, 12 Apr 2002 09:05:00 +0200

> On a machine where I have compiled v2.0.0 with no problem.
> Now says "Cannot find BerkelyDB" when I try to compile
> v2.0.1 (running 'configure'. The machine is a RedHat 7.0.

Now I have done som debuging. I have made following changes in 'configure' soo 
it works for me. Line 3180 is replaced with line 3181. Line 3190 is new.

$ nl configure | sed -n '3470,3487p'
3177            done
3178            if test x"$BERKELEY_DB_LIB" = x ; then
3179                for v in db4 db3 db2 db; do
3180                    #if test -d "$BERKELEY_DB_DIR/$v" ; then
3181                    if test -d "/usr/include/$v" ; then
3182                        if test -f "/usr/include/$v/$v" ; then
3183                           BERKELEY_DB_CFLAGS="-I/usr/include/$v"
3184                           BERKELEY_DB_LIB="-l$v"
3185                        else
3186                           BERKELEY_DB_CFLAGS="-I/usr/include/$v"
3187                           BERKELEY_DB_LIB="-ldb"
3188                        fi
3189                        echo "$as_me:3481: result: Linux locations" >&5
3190                        echo "$as_me:9999: result: $BERKELEY_DB_DIR" >&5
3191    echo "${ECHO_T}Linux locations" >&6
3192                        break
3193                    fi
3194                done

$ egrep '3481|9999' config.log
configure:3481: result: Linux locations
configure:9999: result: yes

If $BERKELEY_DB_DIR = yes (9999) then the test in line 3180 will be

if test -d "yes/$v" ; then

-benny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]