Changeset 288
- Timestamp:
- 28/12/2005 11:38:04 (6 years ago)
- Location:
- box/trunk
- Files:
-
- 3 added
- 2 edited
-
bin/bbackupd/BackupClientInodeToIDMap.cpp (modified) (7 diffs)
-
configure.ac (modified) (3 diffs)
-
infrastructure/m4/ax_compare_version.m4 (added)
-
infrastructure/m4/ax_path_bdb.m4 (added)
-
infrastructure/m4/ax_split_version.m4 (added)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupClientInodeToIDMap.cpp
r217 r288 15 15 #include <fcntl.h> 16 16 #include <limits.h> 17 #include DB_HEADER17 #include <db.h> 18 18 #include <sys/stat.h> 19 19 #endif … … 66 66 if(dbp != 0) 67 67 { 68 #if def BERKELY_V468 #if BDB_VERSION_MAJOR >= 3 69 69 dbp->close(0); 70 70 #else … … 95 95 96 96 // Open the database file 97 #if def BERKELY_V497 #if BDB_VERSION_MAJOR >= 3 98 98 dbp = new Db(0,0); 99 99 dbp->set_pagesize(1024); /* Page size: 1K. */ … … 147 147 if(dbp != 0) 148 148 { 149 #if def BERKELY_V4149 #if BDB_VERSION_MAJOR >= 3 150 150 if(dbp->close(0) != 0) 151 151 #else … … 189 189 rec.mInDirectory = InDirectory; 190 190 191 #if def BERKELY_V4191 #if BDB_VERSION_MAJOR >= 3 192 192 Dbt key(&InodeRef, sizeof(InodeRef)); 193 193 Dbt data(&rec, sizeof(rec)); … … 251 251 } 252 252 253 #if def BERKELY_V4253 #if BDB_VERSION_MAJOR >= 3 254 254 Dbt key(&InodeRef, sizeof(InodeRef)); 255 255 Dbt data(0, 0); … … 281 281 282 282 // Check for sensible return 283 #if def BERKELY_V4283 #if BDB_VERSION_MAJOR >= 3 284 284 if(key.get_data() == 0 || data.get_size() != sizeof(IDBRecord)) 285 285 { -
box/trunk/configure.ac
r286 r288 33 33 if test "$target_os" != "mingw32" -a "$target_os" != "winnt"; then 34 34 AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes], 35 [AC_MSG_ERROR([[Cannot find a short sleep function (nanosleep)]])]) 36 fi 37 AC_CHECK_LIB([z], [zlibVersion],, [AC_MSG_ERROR([[Cannot find zlib]])]) 38 AX_CHECK_BDB_V1 35 [AC_MSG_ERROR([[cannot find a short sleep function (nanosleep)]])]) 36 fi 37 AC_CHECK_LIB([z], [zlibVersion],, [AC_MSG_ERROR([[cannot find zlib]])]) 39 38 VL_LIB_READLINE 40 39 have_libreadline=no 41 40 test "x$vl_cv_lib_readline" != "xno" && have_libreadline=yes 42 41 42 ## Check for Berkely DB. Restrict to certain versions 43 AX_PATH_BDB(, [ 44 LIBS="$BDB_LIBS $LIBS" 45 LDFLAGS="$BDB_LDFLAGS $LDFLAGS" 46 CPPFLAGS="$CPPFLAGS $BDB_CPPFLAGS" 47 48 AX_COMPARE_VERSION([$BDB_VERSION],[ge],[4.1],, 49 [AX_COMPARE_VERSION([$BDB_VERSION],[lt],[2],, 50 [AC_MSG_ERROR([[only Berkely DB versions 1.x or at least 4.1 are currently supported]])] 51 )] 52 ) 53 AX_SPLIT_VERSION([BDB_VERSION], [$BDB_VERSION]) 54 ]) 43 55 44 56 ## Check for Open SSL, use old versions only if explicitly requested … … 179 191 180 192 Large files: $have_large_file_support 181 Berkeley DB: $a c_have_bdb193 Berkeley DB: $ax_path_bdb_ok 182 194 Readline: $have_libreadline 183 195 Extended attributes: $ac_cv_header_sys_xattr_h … … 205 217 ;; 206 218 esac 207 208 if test "x$ac_have_bdb" != "xyes"; then209 echo210 AC_MSG_WARN([[db is not installed -- will run in reduced efficiency mode without it]])211 fi
Note: See TracChangeset
for help on using the changeset viewer.
