autoconf
[Top][All Lists]
Advanced

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

Re: checking for Berkley db 4.2 --> 4.3 upgrade


From: Sam Steingold
Subject: Re: checking for Berkley db 4.2 --> 4.3 upgrade
Date: Thu, 14 Jul 2005 12:19:26 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

> * David Boreham <address@hidden> [2005-07-14 08:42:46 -0700]:
>
> Sam Steingold wrote:
>
>>Berkley db changed prototypes for functions that are struct members.
>>how do I check for that?
>>
>>here is what I have been able to come up with so far:
>>
>>AC_CACHE_CHECK([whether DB->stat() accepts TXNid],ac_cv_db_stat_accept_txn,[
>>AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <db.h>],
>>[[DB db; db->stat(db,0,NULL);]])],
>>ac_cv_db_stat_accept_txn=yes,ac_cv_db_stat_accept_txn=no)])
>>if test "$ac_cv_db_stat_accept_txn" = "yes"; then
>>AC_DEFINE(HAVE_DB_STAT_ACCEPT_TXN,1,[Define to 1 if DB->stat() accepts TXNid])
>>fi
>>
>>Is this the right way to do the check?
>>  
>>
> Wouldn't it be easier to simply read the version number ?
>
> It's available either from the header file or directly via a function
> from the library.

isn't the whole idea of autoconf to avoid relying on version numbers?

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.openvotingconsortium.org/> <http://www.memri.org/>
<http://www.camera.org> <http://pmw.org.il/> <http://www.jihadwatch.org/>
Press any key to continue or any other key to quit.





reply via email to

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