/[MITgcm]/MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/db.m4
ViewVC logotype

Contents of /MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/db.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Feb 23 20:13:30 2008 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
- get new version from: http://packages.qa.debian.org/m/mpack.html
  (files: mpack_1.6.orig.tar.gz, mpack_1.6-4.diff.gz, mpack_1.6-4.dsc)
  and apply patch 'mpack_1.6-4.diff' to original dir: mpack_1.6/
- this fix the MD5 coding on 64.bit platforms (well, seems to).
- added in Contrib to allow separate test (since building mpack seems fishy)

1 dnl $Id: db.m4,v 1.1 2001/04/04 17:58:30 shadow Exp $
2 dnl
3 dnl tests for various db libraries
4 dnl
5 AC_DEFUN([rk_DB],[berkeley_db=db
6 AC_ARG_WITH(berkeley-db,
7 [ --without-berkeley-db if you don't want berkeley db],[
8 if test "$withval" = no; then
9 berkeley_db=""
10 fi
11 ])
12 if test "$berkeley_db"; then
13 AC_CHECK_HEADERS([ \
14 db.h \
15 db_185.h \
16 ])
17 fi
18
19 AC_FIND_FUNC_NO_LIBS2(dbopen, $berkeley_db, [
20 #include <stdio.h>
21 #if defined(HAVE_DB_185_H)
22 #include <db_185.h>
23 #elif defined(HAVE_DB_H)
24 #include <db.h>
25 #endif
26 ],[NULL, 0, 0, 0, NULL])
27
28 AC_FIND_FUNC_NO_LIBS(dbm_firstkey, $berkeley_db gdbm ndbm)
29 AC_FIND_FUNC_NO_LIBS(db_create, $berkeley_db)
30
31 DBLIB="$LIB_dbopen"
32 if test "$LIB_dbopen" != "$LIB_db_create"; then
33 DBLIB="$DBLIB $LIB_db_create"
34 fi
35 if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
36 DBLIB="$DBLIB $LIB_dbm_firstkey"
37 fi
38 AC_SUBST(DBLIB)dnl
39
40 ])

  ViewVC Help
Powered by ViewVC 1.1.22