Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
229acf4f
...
229acf4fd9723146497485413400a29be1c96a84
authored
2003-01-14 11:32:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Version-specific stuff for Berkeley DB.
1 parent
8c0d8f6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
m4/db2.m4
m4/db2.m4
0 → 100644
View file @
229acf4
dnl This file is part of GNU mailutils.
dnl Copyright (C) 2003 Free Software Foundation, Inc.
dnl
dnl GNU Mailutils is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl GNU Mailutils is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with GNU Mailutils; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
AH_TEMPLATE(BDB2_CURSOR_LASTARG,
[Last argument to the cursor member of Berkeley 2 DB structure])
dnl The cursor member of DB structure used to take three arguments in older
dnl implementations of Berkeley DB. Newer versions (db.h >= 11.238) declare
dnl it as taking four arguments.
dnl This macro checks which of the variants we have.
AC_DEFUN(MU_DB2_CURSOR,
[AC_CACHE_CHECK([whether db->cursor takes 4 arguments],
[mu_cv_bdb2_cursor_four_args],
[AC_TRY_COMPILE([#include <db.h>],
[
DB *db;
db->cursor(NULL, NULL, NULL, 0)
],
[mu_cv_bdb2_cursor_four_args=yes],
[mu_cv_bdb2_cursor_four_args=no])])
if test $mu_cv_bdb2_cursor_four_args = yes; then
AC_DEFINE(BDB2_CURSOR_LASTARG,[,0])
else
AC_DEFINE(BDB2_CURSOR_LASTARG,[])
fi])
Please
register
or
sign in
to post a comment