1 // distribution boxbackup-0.11_trunk_2979 (svn version: 2979) 2 // Box Backup, http://www.boxbackup.org/ 3 // 4 // Copyright (c) 2003-2010, Ben Summers and contributors. 5 // All rights reserved. 6 // 7 // Note that this project uses mixed licensing. Any file with this license 8 // attached, or where the code LICENSE-DUAL appears on the first line, falls 9 // under this license. See the file COPYING.txt for more information. 10 // 11 // This file is dual licensed. You may use and distribute it providing that you 12 // comply EITHER with the terms of the BSD license, OR the GPL license. It is 13 // not necessary to comply with both licenses, only one. 14 // 15 // The BSD license option follows: 16 // 17 // Redistribution and use in source and binary forms, with or without 18 // modification, are permitted provided that the following conditions are met: 19 // 20 // 1. Redistributions of source code must retain the above copyright 21 // notice, this list of conditions and the following disclaimer. 22 // 23 // 2. Redistributions in binary form must reproduce the above copyright 24 // notice, this list of conditions and the following disclaimer in the 25 // documentation and/or other materials provided with the distribution. 26 // 27 // 3. Neither the name of the Box Backup nor the names of its contributors may 28 // be used to endorse or promote products derived from this software without 29 // specific prior written permission. 30 // 31 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 32 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 33 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 34 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY 35 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 36 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 38 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 39 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 40 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 // 42 // [http://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_.28.22New_BSD_License.22.29] 43 // 44 // The GPL license option follows: 45 // 46 // This program is free software; you can redistribute it and/or 47 // modify it under the terms of the GNU General Public License 48 // as published by the Free Software Foundation; either version 2 49 // of the License, or (at your option) any later version. 50 // 51 // This program is distributed in the hope that it will be useful, 52 // but WITHOUT ANY WARRANTY; without even the implied warranty of 53 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 54 // GNU General Public License for more details. 55 // 56 // You should have received a copy of the GNU General Public License 57 // along with this program; if not, write to the Free Software 58 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 59 // 60 // [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4] 61 /* lib/common/BoxConfig.h. Generated from BoxConfig.h.in by configure. */ 62 /* lib/common/BoxConfig.h.in. Generated from configure.ac by autoheader. */ 63 64 /* Define to major version for BDB_VERSION */ 65 /* #undef BDB_VERSION_MAJOR */ 66 67 /* Define to minor version for BDB_VERSION */ 68 /* #undef BDB_VERSION_MINOR */ 69 70 /* Define to point version for BDB_VERSION */ 71 /* #undef BDB_VERSION_POINT */ 72 73 /* Name of the 64 bit endian swapping function */ 74 #define BSWAP64 htobe64 75 76 /* Define to 1 if the `closedir' function returns void instead of `int'. */ 77 /* #undef CLOSEDIR_VOID */ 78 79 /* Define to 1 if you have the <asm/byteorder.h> header file. */ 80 /* #undef HAVE_ASM_BYTEORDER_H */ 81 82 /* Define to 1 if you have the <bsd/unistd.h> header file. */ 83 /* #undef HAVE_BSD_UNISTD_H */ 84 85 /* Define to 1 if BSWAP64 is defined to the name of a valid 64 bit endian 86 swapping function */ 87 #define HAVE_BSWAP64 1 88 89 /* Define if you have completion_matches in readline headers */ 90 /* #undef HAVE_COMPLETION_MATCHES */ 91 92 /* Define to 1 if you have the <cxxabi.h> header file. */ 93 #define HAVE_CXXABI_H 1 94 95 /* Define to 1 if you have the <db.h> header file. */ 96 /* #undef HAVE_DB_H */ 97 98 /* Define to 1 if you have the declaration of `dirfd', and to 0 if you don't. 99 */ 100 #define HAVE_DECL_DIRFD 1 101 102 /* Define to 1 if you have the declaration of `F_SETLK', and to 0 if you 103 don't. */ 104 #define HAVE_DECL_F_SETLK 1 105 106 /* Define to 1 if you have the declaration of `INFTIM', and to 0 if you don't. 107 */ 108 #define HAVE_DECL_INFTIM 1 109 110 /* Define to 1 if you have the declaration of `optreset', and to 0 if you 111 don't. */ 112 #define HAVE_DECL_OPTRESET 1 113 114 /* Define to 1 if you have the declaration of `O_BINARY', and to 0 if you 115 don't. */ 116 #define HAVE_DECL_O_BINARY 0 117 118 /* Define to 1 if you have the declaration of `O_EXLOCK', and to 0 if you 119 don't. */ 120 #define HAVE_DECL_O_EXLOCK 1 121 122 /* Define to 1 if you have the declaration of `SO_PEERCRED', and to 0 if you 123 don't. */ 124 #define HAVE_DECL_SO_PEERCRED 0 125 126 /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if 127 you don't. */ 128 #define HAVE_DECL_XATTR_NOFOLLOW 0 129 130 /* Define to 1 if #define of pragmas works */ 131 /* #undef HAVE_DEFINE_PRAGMA */ 132 133 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 134 */ 135 #define HAVE_DIRENT_H 1 136 137 /* Define to 1 if `dd_fd' is member of `DIR'. */ 138 #define HAVE_DIR_DD_FD 1 139 140 /* Define to 1 if `d_fd' is member of `DIR'. */ 141 /* #undef HAVE_DIR_D_FD */ 142 143 /* Define to 1 if you have the `dladdr' function. */ 144 #define HAVE_DLADDR 1 145 146 /* Define to 1 if you have the <dlfcn.h> header file. */ 147 #define HAVE_DLFCN_H 1 148 149 /* Define to 1 if you have the `dlsym' function. */ 150 #define HAVE_DLSYM 1 151 152 /* Define to 1 if you have the <editline/readline.h> header file. */ 153 /* #undef HAVE_EDITLINE_READLINE_H */ 154 155 /* define if the compiler supports exceptions */ 156 #define HAVE_EXCEPTIONS /**/ 157 158 /* Define to 1 if you have the <execinfo.h> header file. */ 159 /* #undef HAVE_EXECINFO_H */ 160 161 /* Define to 1 if you have the `fcntl' function. */ 162 #define HAVE_FCNTL 1 163 164 /* Define to 1 if you have the `flock' function. */ 165 #define HAVE_FLOCK 1 166 167 /* Define to 1 if you have the `ftruncate' function. */ 168 #define HAVE_FTRUNCATE 1 169 170 /* Define to 1 if you have the `getmntent' function. */ 171 /* #undef HAVE_GETMNTENT */ 172 173 /* Define to 1 if you have the <getopt.h> header file. */ 174 #define HAVE_GETOPT_H 1 175 176 /* Define to 1 if you have the `getpeereid' function. */ 177 #define HAVE_GETPEEREID 1 178 179 /* Define to 1 if you have the `getpeerucred' function. */ 180 /* #undef HAVE_GETPEERUCRED */ 181 182 /* Define to 1 if you have the `getpid' function. */ 183 #define HAVE_GETPID 1 184 185 /* Define to 1 if you have the `gettimeofday' function. */ 186 #define HAVE_GETTIMEOFDAY 1 187 188 /* Define to 1 if you have the `getxattr' function. */ 189 /* #undef HAVE_GETXATTR */ 190 191 /* Define to 1 if you have the <history.h> header file. */ 192 /* #undef HAVE_HISTORY_H */ 193 194 /* Define to 1 if you have the <inttypes.h> header file. */ 195 #define HAVE_INTTYPES_H 1 196 197 /* Define to 1 if you have the `kqueue' function. */ 198 #define HAVE_KQUEUE 1 199 200 /* Define to 1 if large files are supported */ 201 #define HAVE_LARGE_FILE_SUPPORT 1 202 203 /* Define to 1 if you have the `lchown' function. */ 204 #define HAVE_LCHOWN 1 205 206 /* Define to 1 if you have the `lgetxattr' function. */ 207 /* #undef HAVE_LGETXATTR */ 208 209 /* Define to 1 if you have the `crypto' library (-lcrypto). */ 210 #define HAVE_LIBCRYPTO 1 211 212 /* Define if you have a readline compatible library */ 213 /* #undef HAVE_LIBREADLINE */ 214 215 /* Define to 1 if you have the `ssl' library (-lssl). */ 216 #define HAVE_LIBSSL 1 217 218 /* Define to 1 if you have the `z' library (-lz). */ 219 #define HAVE_LIBZ 1 220 221 /* Define to 1 if you have the `listxattr' function. */ 222 /* #undef HAVE_LISTXATTR */ 223 224 /* Define to 1 if you have the `llistxattr' function. */ 225 /* #undef HAVE_LLISTXATTR */ 226 227 /* Define to 1 if syscall lseek requires a dummy middle parameter */ 228 /* #undef HAVE_LSEEK_DUMMY_PARAM */ 229 230 /* Define to 1 if you have the `lsetxattr' function. */ 231 /* #undef HAVE_LSETXATTR */ 232 233 /* Define to 1 if you have the <memory.h> header file. */ 234 #define HAVE_MEMORY_H 1 235 236 /* Define to 1 if you have the <mntent.h> header file. */ 237 /* #undef HAVE_MNTENT_H */ 238 239 /* Define to 1 if this platform supports mounts */ 240 #define HAVE_MOUNTS 1 241 242 /* define if the compiler implements namespaces */ 243 #define HAVE_NAMESPACES /**/ 244 245 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ 246 /* #undef HAVE_NDIR_H */ 247 248 /* Define to 1 if you have the <netinet/in.h> header file. */ 249 #define HAVE_NETINET_IN_H 1 250 251 /* Define to 1 if SSL is pre-0.9.7 */ 252 /* #undef HAVE_OLD_SSL */ 253 254 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 255 #define HAVE_OPENSSL_SSL_H 1 256 257 /* Define to 1 if pcreposix.h is available */ 258 /* #undef HAVE_PCREPOSIX_H */ 259 260 /* Define to 1 if you have the <process.h> header file. */ 261 /* #undef HAVE_PROCESS_H */ 262 263 /* Define to 1 if you have the <pwd.h> header file. */ 264 #define HAVE_PWD_H 1 265 266 /* Define to 1 (and set RANDOM_DEVICE) if a random device is available */ 267 #define HAVE_RANDOM_DEVICE 1 268 269 /* Define to 1 if you have the <readline.h> header file. */ 270 /* #undef HAVE_READLINE_H */ 271 272 /* Define if your readline library has add_history */ 273 /* #undef HAVE_READLINE_HISTORY */ 274 275 /* Define to 1 if you have the <readline/history.h> header file. */ 276 /* #undef HAVE_READLINE_HISTORY_H */ 277 278 /* Define to 1 if you have the <readline/readline.h> header file. */ 279 /* #undef HAVE_READLINE_READLINE_H */ 280 281 /* Define to 1 if regex.h is available */ 282 #define HAVE_REGEX_H 1 283 284 /* Define to 1 if regular expressions are supported */ 285 #define HAVE_REGEX_SUPPORT 1 286 287 /* Define if you have rl_completion_matches in readline headers */ 288 /* #undef HAVE_RL_COMPLETION_MATCHES */ 289 290 /* Define to 1 if you have the `rl_filename_completion_function' function. */ 291 /* #undef HAVE_RL_FILENAME_COMPLETION_FUNCTION */ 292 293 /* Define to 1 if you have the `setproctitle' function. */ 294 #define HAVE_SETPROCTITLE 1 295 296 /* Define to 1 if you have the `setxattr' function. */ 297 /* #undef HAVE_SETXATTR */ 298 299 /* Define to 1 if you have the <signal.h> header file. */ 300 #define HAVE_SIGNAL_H 1 301 302 /* Define to 1 if SSL is available */ 303 #define HAVE_SSL 1 304 305 /* Define to 1 if you have the `statfs' function. */ 306 #define HAVE_STATFS 1 307 308 /* Define to 1 if `stat' has the bug that it succeeds when given the 309 zero-length file name argument. */ 310 /* #undef HAVE_STAT_EMPTY_STRING_BUG */ 311 312 /* Define to 1 if stdbool.h conforms to C99. */ 313 /* #undef HAVE_STDBOOL_H */ 314 315 /* Define to 1 if you have the <stdint.h> header file. */ 316 #define HAVE_STDINT_H 1 317 318 /* Define to 1 if you have the <stdlib.h> header file. */ 319 #define HAVE_STDLIB_H 1 320 321 /* Define to 1 if you have the <strings.h> header file. */ 322 #define HAVE_STRINGS_H 1 323 324 /* Define to 1 if you have the <string.h> header file. */ 325 #define HAVE_STRING_H 1 326 327 /* Define to 1 if `d_ino' is member of `struct dirent'. */ 328 #define HAVE_STRUCT_DIRENT_D_INO 1 329 330 /* Define to 1 if `d_type' is member of `struct dirent'. */ 331 #define HAVE_STRUCT_DIRENT_D_TYPE 1 332 333 /* Define to 1 if `mnt_dir' is member of `struct mntent'. */ 334 /* #undef HAVE_STRUCT_MNTENT_MNT_DIR */ 335 336 /* Define to 1 if `mnt_mountp' is member of `struct mnttab'. */ 337 /* #undef HAVE_STRUCT_MNTTAB_MNT_MOUNTP */ 338 339 /* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */ 340 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 341 342 /* Define to 1 if `f_mntonname' is member of `struct statfs'. */ 343 #define HAVE_STRUCT_STATFS_F_MNTONNAME 1 344 345 /* Define to 1 if `f_mntonname' is member of `struct statvfs'. */ 346 /* #undef HAVE_STRUCT_STATVFS_F_MNTONNAME */ 347 348 /* Define to 1 if `st_atimensec' is member of `struct stat'. */ 349 /* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ 350 351 /* Define to 1 if `st_atim.tv_nsec' is member of `struct stat'. */ 352 /* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ 353 354 /* Define to 1 if `st_flags' is member of `struct stat'. */ 355 #define HAVE_STRUCT_STAT_ST_FLAGS 1 356 357 /* Define to 1 if `st_mtimespec' is member of `struct stat'. */ 358 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 359 360 /* Define to 1 if you have the `syscall' function. */ 361 #define HAVE_SYSCALL 1 362 363 /* Define to 1 if you have the <syslog.h> header file. */ 364 #define HAVE_SYSLOG_H 1 365 366 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. 367 */ 368 /* #undef HAVE_SYS_DIR_H */ 369 370 /* Define to 1 if you have the <sys/endian.h> header file. */ 371 #define HAVE_SYS_ENDIAN_H 1 372 373 /* Define to 1 if you have the <sys/file.h> header file. */ 374 #define HAVE_SYS_FILE_H 1 375 376 /* Define to 1 if you have the <sys/mnttab.h> header file. */ 377 /* #undef HAVE_SYS_MNTTAB_H */ 378 379 /* Define to 1 if you have the <sys/mount.h> header file. */ 380 #define HAVE_SYS_MOUNT_H 1 381 382 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. 383 */ 384 /* #undef HAVE_SYS_NDIR_H */ 385 386 /* Define to 1 if you have the <sys/param.h> header file. */ 387 #define HAVE_SYS_PARAM_H 1 388 389 /* Define to 1 if you have the <sys/socket.h> header file. */ 390 #define HAVE_SYS_SOCKET_H 1 391 392 /* Define to 1 if you have the <sys/stat.h> header file. */ 393 #define HAVE_SYS_STAT_H 1 394 395 /* Define to 1 if you have the <sys/syscall.h> header file. */ 396 #define HAVE_SYS_SYSCALL_H 1 397 398 /* Define to 1 if you have the <sys/time.h> header file. */ 399 #define HAVE_SYS_TIME_H 1 400 401 /* Define to 1 if you have the <sys/types.h> header file. */ 402 #define HAVE_SYS_TYPES_H 1 403 404 /* Define to 1 if you have the <sys/uio.h> header file. */ 405 #define HAVE_SYS_UIO_H 1 406 407 /* Define to 1 if you have the <sys/wait.h> header file. */ 408 #define HAVE_SYS_WAIT_H 1 409 410 /* Define to 1 if you have the <sys/xattr.h> header file. */ 411 /* #undef HAVE_SYS_XATTR_H */ 412 413 /* Define to 1 if you have the <time.h> header file. */ 414 #define HAVE_TIME_H 1 415 416 /* Define to 1 if you have the <ucred.h> header file. */ 417 /* #undef HAVE_UCRED_H */ 418 419 /* Define to 1 if the system has the type `uint16_t'. */ 420 #define HAVE_UINT16_T 1 421 422 /* Define to 1 if the system has the type `uint32_t'. */ 423 #define HAVE_UINT32_T 1 424 425 /* Define to 1 if the system has the type `uint64_t'. */ 426 #define HAVE_UINT64_T 1 427 428 /* Define to 1 if the system has the type `uint8_t'. */ 429 #define HAVE_UINT8_T 1 430 431 /* Define to 1 if you have the <unistd.h> header file. */ 432 #define HAVE_UNISTD_H 1 433 434 /* Define to 1 if the system has the type `u_int16_t'. */ 435 #define HAVE_U_INT16_T 1 436 437 /* Define to 1 if the system has the type `u_int32_t'. */ 438 #define HAVE_U_INT32_T 1 439 440 /* Define to 1 if the system has the type `u_int64_t'. */ 441 #define HAVE_U_INT64_T 1 442 443 /* Define to 1 if the system has the type `u_int8_t'. */ 444 #define HAVE_U_INT8_T 1 445 446 /* Define to 1 if struct dirent.d_type is valid */ 447 /* #undef HAVE_VALID_DIRENT_D_TYPE */ 448 449 /* Define to 1 if you have the `waitpid' function. */ 450 #define HAVE_WAITPID 1 451 452 /* Define to 1 if the system has the type `_Bool'. */ 453 /* #undef HAVE__BOOL */ 454 455 /* Define to 1 if you have the `__syscall' function. */ 456 #define HAVE___SYSCALL 1 457 458 /* Define to 1 if __syscall is available but needs a definition */ 459 /* #undef HAVE___SYSCALL_NEED_DEFN */ 460 461 /* Define to 1 if `lstat' dereferences a symlink specified with a trailing 462 slash. */ 463 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 464 465 /* Define to the address where bug reports for this package should be sent. */ 466 #define PACKAGE_BUGREPORT "boxbackup@boxbackup.org" 467 468 /* Define to the full name of this package. */ 469 #define PACKAGE_NAME "Box Backup" 470 471 /* Define to the full name and version of this package. */ 472 #define PACKAGE_STRING "Box Backup 0.11" 473 474 /* Define to the one symbol short name of this package. */ 475 #define PACKAGE_TARNAME "boxbackup" 476 477 /* Define to the version of this package. */ 478 #define PACKAGE_VERSION "0.11" 479 480 /* Box Backup always uses static PCRE */ 481 /* #undef PCRE_STATIC */ 482 483 /* Location of the perl executable */ 484 #define PERL_EXECUTABLE "/usr/bin/perl" 485 486 /* Define to the filename of the random device (and set HAVE_RANDOM_DEVICE) */ 487 #define RANDOM_DEVICE "/dev/urandom" 488 489 /* Define as the return type of signal handlers (`int' or `void'). */ 490 #define RETSIGTYPE void 491 492 /* Define to 1 if you have the ANSI C header files. */ 493 #define STDC_HEADERS 1 494 495 /* TMP directory name */ 496 #define TEMP_DIRECTORY_NAME "/tmp" 497 498 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 499 #define TIME_WITH_SYS_TIME 1 500 501 /* Define to 1 if your <sys/time.h> declares `struct tm'. */ 502 /* #undef TM_IN_SYS_TIME */ 503 504 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 505 significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ 506 #if defined __BIG_ENDIAN__ 507 # define WORDS_BIGENDIAN 1 508 #elif ! defined __LITTLE_ENDIAN__ 509 /* # undef WORDS_BIGENDIAN */ 510 #endif 511 512 /* Number of bits in a file offset, on hosts where this is settable. */ 513 /* #undef _FILE_OFFSET_BITS */ 514 515 /* Define for large files, on AIX-style hosts. */ 516 /* #undef _LARGE_FILES */ 517 518 /* Define to 1 if __USE_MALLOC is required work around STL memory leaks */ 519 /* #undef __USE_MALLOC */ 520 521 /* Define to empty if `const' does not conform to ANSI C. */ 522 /* #undef const */ 523 524 /* Define to `int' if <sys/types.h> doesn't define. */ 525 /* #undef gid_t */ 526 527 /* Define to `int' if <sys/types.h> does not define. */ 528 /* #undef mode_t */ 529 530 /* Define to `long int' if <sys/types.h> does not define. */ 531 /* #undef off_t */ 532 533 /* Define to `int' if <sys/types.h> does not define. */ 534 /* #undef pid_t */ 535 536 /* Define to `unsigned int' if <sys/types.h> does not define. */ 537 /* #undef size_t */ 538 539 /* Define to `int' if <sys/types.h> doesn't define. */ 540 /* #undef uid_t */ 541