1 /* include/config.h. Generated from config.h.in by configure. */ 2 /* include/config.h.in. Generated from configure.ac by autoheader. */ 3 4 /* Define if building universal (internal helper macro) */ 5 /* #undef AC_APPLE_UNIVERSAL_BUILD */ 6 7 /* Build version */ 8 #define BUILD_VERSION "ada5c3b36" 9 10 /* Where to keep blackbox dumps */ 11 #define CRM_BLACKBOX_DIR "/var/lib/pacemaker/blackbox" 12 13 /* Location for Pacemaker bundle logs */ 14 #define CRM_BUNDLE_DIR "/var/log/pacemaker/bundles" 15 16 /* Where to keep cts stateful data */ 17 #define CRM_CONFIG_CTS "/var/lib/pacemaker/cts" 18 19 /* Where to keep configuration files */ 20 #define CRM_CONFIG_DIR "/var/lib/pacemaker/cib" 21 22 /* Location to store core files produced by Pacemaker daemons */ 23 #define CRM_CORE_DIR "/var/lib/pacemaker/cores" 24 25 /* Location for Pacemaker daemons */ 26 #define CRM_DAEMON_DIR "/usr/libexec/pacemaker" 27 28 /* Group to run Pacemaker daemons as */ 29 #define CRM_DAEMON_GROUP "haclient" 30 31 /* User to run Pacemaker daemons as */ 32 #define CRM_DAEMON_USER "hacluster" 33 34 /* Set of enabled features */ 35 #define CRM_FEATURES "agent-manpages ascii-docs books cibsecrets compat-2.0 corosync-ge-2 generated-manpages monotonic nagios ncurses remote systemd" 36 37 /* Location for Pacemaker log file */ 38 #define CRM_LOG_DIR "/var/log/pacemaker" 39 40 /* Location to store directory produced by Pacemaker daemons */ 41 #define CRM_PACEMAKER_DIR "/var/lib/pacemaker" 42 43 /* Where resource agents should keep state files */ 44 #define CRM_RSCTMP_DIR "/var/run/resource-agents" 45 46 /* Location for the Pacemaker Relax-NG Schema */ 47 #define CRM_SCHEMA_DIRECTORY "/usr/share/pacemaker" 48 49 /* Where to keep state files and sockets */ 50 #define CRM_STATE_DIR "/var/run/crm" 51 52 /* Enable versioned attributes */ 53 #define ENABLE_VERSIONED_ATTRS 0 54 55 /* gcc can complain about nonliterals in format */ 56 #define GCC_FORMAT_NONLITERAL_CHECKING_ENABLED /**/ 57 58 /* Define to 1 if you have the `alphasort' function. */ 59 #define HAVE_ALPHASORT 1 60 61 /* Define to 1 if you have the `argz_add' function. */ 62 #define HAVE_ARGZ_ADD 1 63 64 /* Define to 1 if you have the `argz_append' function. */ 65 #define HAVE_ARGZ_APPEND 1 66 67 /* Define to 1 if you have the `argz_count' function. */ 68 #define HAVE_ARGZ_COUNT 1 69 70 /* Define to 1 if you have the `argz_create_sep' function. */ 71 #define HAVE_ARGZ_CREATE_SEP 1 72 73 /* Define to 1 if you have the <argz.h> header file. */ 74 #define HAVE_ARGZ_H 1 75 76 /* Define to 1 if you have the `argz_insert' function. */ 77 #define HAVE_ARGZ_INSERT 1 78 79 /* Define to 1 if you have the `argz_next' function. */ 80 #define HAVE_ARGZ_NEXT 1 81 82 /* Define to 1 if you have the `argz_stringify' function. */ 83 #define HAVE_ARGZ_STRINGIFY 1 84 85 /* Define to 1 if you have the <arpa/inet.h> header file. */ 86 #define HAVE_ARPA_INET_H 1 87 88 /* Define to 1 if you have the <byteswap.h> header file. */ 89 #define HAVE_BYTESWAP_H 1 90 91 /* Define to 1 if you have the <bzlib.h> header file. */ 92 #define HAVE_BZLIB_H 1 93 94 /* Define to 1 if you have the `closedir' function. */ 95 #define HAVE_CLOSEDIR 1 96 97 /* Define to 1 if you have the `corosync_cfg_trackstart' function. */ 98 /* #undef HAVE_COROSYNC_CFG_TRACKSTART */ 99 100 /* Define to 1 if you have the <ctype.h> header file. */ 101 #define HAVE_CTYPE_H 1 102 103 /* Define to 1 if you have the <curses/curses.h> header file. */ 104 /* #undef HAVE_CURSES_CURSES_H */ 105 106 /* Define to 1 if you have the <curses.h> header file. */ 107 #define HAVE_CURSES_H 1 108 109 /* Define to 1 if the system has the type `DBusBasicValue'. */ 110 #define HAVE_DBUSBASICVALUE 1 111 112 /* Define to 1 if you have the declaration of `assert_float_equal', and to 0 113 if you don't. */ 114 #define HAVE_DECL_ASSERT_FLOAT_EQUAL 1 115 116 /* Define to 1 if you have the declaration of `CLOCK_MONOTONIC', and to 0 if 117 you don't. */ 118 #define HAVE_DECL_CLOCK_MONOTONIC 1 119 120 /* Define to 1 if you have the declaration of `cygwin_conv_path', and to 0 if 121 you don't. */ 122 /* #undef HAVE_DECL_CYGWIN_CONV_PATH */ 123 124 /* Define to 1 if you have the declaration of `PRIu32', and to 0 if you don't. 125 */ 126 #define HAVE_DECL_PRIU32 1 127 128 /* Define to 1 if you have the declaration of `PRIu64', and to 0 if you don't. 129 */ 130 #define HAVE_DECL_PRIU64 1 131 132 /* Define to 1 if you have the declaration of `PRIx32', and to 0 if you don't. 133 */ 134 #define HAVE_DECL_PRIX32 1 135 136 /* Define to 1 if you have the declaration of `SCNu64', and to 0 if you don't. 137 */ 138 #define HAVE_DECL_SCNU64 1 139 140 /* Define to 1 if you have the <dirent.h> header file. */ 141 #define HAVE_DIRENT_H 1 142 143 /* Define if you have the GNU dld library. */ 144 /* #undef HAVE_DLD */ 145 146 /* Define to 1 if you have the <dld.h> header file. */ 147 /* #undef HAVE_DLD_H */ 148 149 /* Define to 1 if you have the `dlerror' function. */ 150 #define HAVE_DLERROR 1 151 152 /* Define to 1 if you have the <dlfcn.h> header file. */ 153 #define HAVE_DLFCN_H 1 154 155 /* Define to 1 if you have the <dl.h> header file. */ 156 /* #undef HAVE_DL_H */ 157 158 /* Define if you have the _dyld_func_lookup function. */ 159 /* #undef HAVE_DYLD */ 160 161 /* Define to 1 if you have the <errno.h> header file. */ 162 #define HAVE_ERRNO_H 1 163 164 /* Define to 1 if the system has the type `error_t'. */ 165 #define HAVE_ERROR_T 1 166 167 /* Define to 1 if you have the <getopt.h> header file. */ 168 #define HAVE_GETOPT_H 1 169 170 /* Define to 1 if you have the <glib.h> header file. */ 171 #define HAVE_GLIB_H 1 172 173 /* Define to 1 if you have the <gnutls/gnutls.h> header file. */ 174 #define HAVE_GNUTLS_GNUTLS_H 1 175 176 /* Define to 1 if you have the <grp.h> header file. */ 177 #define HAVE_GRP_H 1 178 179 /* Define to 1 if curses library has incompatible printw() */ 180 /* #undef HAVE_INCOMPATIBLE_PRINTW */ 181 182 /* Define to 1 if you have the <inttypes.h> header file. */ 183 #define HAVE_INTTYPES_H 1 184 185 /* Have qb_ipcc_auth_get function */ 186 /* #undef HAVE_IPCC_AUTH_GET */ 187 188 /* Define to 1 if you have the `asan' library (-lasan). */ 189 /* #undef HAVE_LIBASAN */ 190 191 /* Define to 1 if you have the `bz2' library (-lbz2). */ 192 #define HAVE_LIBBZ2 1 193 194 /* Define to 1 if you have the `c' library (-lc). */ 195 /* #undef HAVE_LIBC */ 196 197 /* have curses library */ 198 /* #undef HAVE_LIBCURSES */ 199 200 /* Define to 1 if you have the `dl' library (-ldl). */ 201 #define HAVE_LIBDL 1 202 203 /* Define if libdlloader will be built on this platform */ 204 #define HAVE_LIBDLLOADER 1 205 206 /* Define to 1 if you have the `gnugetopt' library (-lgnugetopt). */ 207 /* #undef HAVE_LIBGNUGETOPT */ 208 209 /* Define to 1 if you have the `gnutls' library (-lgnutls). */ 210 #define HAVE_LIBGNUTLS 1 211 212 /* have ncurses library */ 213 #define HAVE_LIBNCURSES 1 214 215 /* Define to 1 if you have the `pam' library (-lpam). */ 216 #define HAVE_LIBPAM 1 217 218 /* Define to 1 if you have the `pils' library (-lpils). */ 219 /* #undef HAVE_LIBPILS */ 220 221 /* Define to 1 if you have the `plumb' library (-lplumb). */ 222 /* #undef HAVE_LIBPLUMB */ 223 224 /* Define to 1 if you have the `rt' library (-lrt). */ 225 #define HAVE_LIBRT 1 226 227 /* Define to 1 if you have the `socket' library (-lsocket). */ 228 /* #undef HAVE_LIBSOCKET */ 229 230 /* Define to 1 if you have the `tsan' library (-ltsan). */ 231 /* #undef HAVE_LIBTSAN */ 232 233 /* Define to 1 if you have the `ubsan' library (-lubsan). */ 234 /* #undef HAVE_LIBUBSAN */ 235 236 /* Define to 1 if you have the <libxml/xpath.h> header file. */ 237 #define HAVE_LIBXML_XPATH_H 1 238 239 /* Define to 1 if you have the `xslt' library (-lxslt). */ 240 #define HAVE_LIBXSLT 1 241 242 /* Define to 1 if you have the <libxslt/xslt.h> header file. */ 243 #define HAVE_LIBXSLT_XSLT_H 1 244 245 /* Define to 1 if you have the <limits.h> header file. */ 246 #define HAVE_LIMITS_H 1 247 248 /* Define to 1 if you have the <linux/swab.h> header file. */ 249 #define HAVE_LINUX_SWAB_H 1 250 251 /* Define this if a modern libltdl is already installed */ 252 #define HAVE_LTDL 1 253 254 /* Define to 1 if you have the <mach-o/dyld.h> header file. */ 255 /* #undef HAVE_MACH_O_DYLD_H */ 256 257 /* Define to 1 if you have the <malloc.h> header file. */ 258 /* #undef HAVE_MALLOC_H */ 259 260 /* Define to 1 if you have the <memory.h> header file. */ 261 #define HAVE_MEMORY_H 1 262 263 /* Define to 1 if you have the `nanosleep' function. */ 264 #define HAVE_NANOSLEEP 1 265 266 /* Define to 1 if you have the <ncurses.h> header file. */ 267 #define HAVE_NCURSES_H 1 268 269 /* Define to 1 if you have the <ncurses/ncurses.h> header file. */ 270 #define HAVE_NCURSES_NCURSES_H 1 271 272 /* Define to 1 if you have the <netdb.h> header file. */ 273 #define HAVE_NETDB_H 1 274 275 /* Define to 1 if you have the <netinet/in.h> header file. */ 276 #define HAVE_NETINET_IN_H 1 277 278 /* Define to 1 if you have the <netinet/ip.h> header file. */ 279 #define HAVE_NETINET_IP_H 1 280 281 /* Define to 1 if you have the `NoSuchFunctionName' function. */ 282 /* #undef HAVE_NOSUCHFUNCTIONNAME */ 283 284 /* Define to 1 if you have the `opendir' function. */ 285 #define HAVE_OPENDIR 1 286 287 /* Define to 1 if libcrypto is used for MD5. */ 288 /* #undef HAVE_OPENSSL_MD5 */ 289 290 /* Define to 1 if you have the <openssl/md5.h> header file. */ 291 /* #undef HAVE_OPENSSL_MD5_H */ 292 293 /* Define to 1 if you have the <pam/pam_appl.h> header file. */ 294 /* #undef HAVE_PAM_PAM_APPL_H */ 295 296 /* Define if libtool can extract symbol lists from object files. */ 297 #define HAVE_PRELOADED_SYMBOLS 1 298 299 /* Define to 1 if you have the <pwd.h> header file. */ 300 #define HAVE_PWD_H 1 301 302 /* Define to 1 if you have the `qb_ipcc_auth_get' function. */ 303 /* #undef HAVE_QB_IPCC_AUTH_GET */ 304 305 /* Define to 1 if you have the `readdir' function. */ 306 #define HAVE_READDIR 1 307 308 /* Define to 1 if you have the `scandir' function. */ 309 #define HAVE_SCANDIR 1 310 311 /* Define to 1 if you have the `sched_setscheduler' function. */ 312 #define HAVE_SCHED_SETSCHEDULER 1 313 314 /* Define to 1 if you have the <security/pam_appl.h> header file. */ 315 #define HAVE_SECURITY_PAM_APPL_H 1 316 317 /* Define if you have the shl_load function. */ 318 /* #undef HAVE_SHL_LOAD */ 319 320 /* Define to 1 if sighandler_t is available */ 321 /* #undef HAVE_SIGHANDLER_T */ 322 323 /* Define to 1 if you have the <signal.h> header file. */ 324 #define HAVE_SIGNAL_H 1 325 326 /* Define to 1 if you have the <stddef.h> header file. */ 327 #define HAVE_STDDEF_H 1 328 329 /* Define to 1 if you have the <stdint.h> header file. */ 330 #define HAVE_STDINT_H 1 331 332 /* Define to 1 if you have the <stdio.h> header file. */ 333 #define HAVE_STDIO_H 1 334 335 /* Define to 1 if you have the <stdlib.h> header file. */ 336 #define HAVE_STDLIB_H 1 337 338 /* Define to 1 if you have the <stonith/stonith.h> header file. */ 339 /* #undef HAVE_STONITH_STONITH_H */ 340 341 /* Define to 1 if you have the `strchrnul' function. */ 342 #define HAVE_STRCHRNUL 1 343 344 /* Define to 1 if you have the `strerror' function. */ 345 #define HAVE_STRERROR 1 346 347 /* Define to 1 if you have the <strings.h> header file. */ 348 #define HAVE_STRINGS_H 1 349 350 /* Define to 1 if you have the <string.h> header file. */ 351 #define HAVE_STRING_H 1 352 353 /* Define to 1 if you have the `strlcat' function. */ 354 /* #undef HAVE_STRLCAT */ 355 356 /* Define to 1 if you have the `strlcpy' function. */ 357 /* #undef HAVE_STRLCPY */ 358 359 /* Define to 1 if you have the `strndup' function. */ 360 #define HAVE_STRNDUP 1 361 362 /* Define to 1 if you have the `strnlen' function. */ 363 #define HAVE_STRNLEN 1 364 365 /* Define this if struct dirent has d_type */ 366 #define HAVE_STRUCT_DIRENT_D_TYPE 1 367 368 /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ 369 #define HAVE_STRUCT_TM_TM_GMTOFF 1 370 371 /* Define to 1 if you have the <sys/dl.h> header file. */ 372 /* #undef HAVE_SYS_DL_H */ 373 374 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 375 #define HAVE_SYS_IOCTL_H 1 376 377 /* Define to 1 if you have the <sys/param.h> header file. */ 378 #define HAVE_SYS_PARAM_H 1 379 380 /* Define to 1 if you have the <sys/reboot.h> header file. */ 381 #define HAVE_SYS_REBOOT_H 1 382 383 /* Define to 1 if you have the <sys/resource.h> header file. */ 384 #define HAVE_SYS_RESOURCE_H 1 385 386 /* Define to 1 if you have the <sys/signalfd.h> header file. */ 387 #define HAVE_SYS_SIGNALFD_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/time.h> header file. */ 396 #define HAVE_SYS_TIME_H 1 397 398 /* Define to 1 if you have the <sys/types.h> header file. */ 399 #define HAVE_SYS_TYPES_H 1 400 401 /* Define to 1 if you have the <sys/utsname.h> header file. */ 402 #define HAVE_SYS_UTSNAME_H 1 403 404 /* Define to 1 if you have the <sys/wait.h> header file. */ 405 #define HAVE_SYS_WAIT_H 1 406 407 /* Define to 1 if you have the <time.h> header file. */ 408 #define HAVE_TIME_H 1 409 410 /* Define to 1 if you have the <unistd.h> header file. */ 411 #define HAVE_UNISTD_H 1 412 413 /* Define to 1 if you have the `usleep' function. */ 414 #define HAVE_USLEEP 1 415 416 /* Define to 1 if you have the `uuid_unparse' function. */ 417 #define HAVE_UUID_UNPARSE 1 418 419 /* Define to 1 if you have the <uuid/uuid.h> header file. */ 420 #define HAVE_UUID_UUID_H 1 421 422 /* This value is set to 1 to indicate that the system argz facility works */ 423 #define HAVE_WORKING_ARGZ 1 424 425 /* */ 426 /* #undef HAVE___PROGNAME */ 427 428 /* Whether enum qb_log_conf supports QB_LOG_CONF_ELLIPSIS */ 429 /* #undef HAVE_qb_log_conf_QB_LOG_CONF_ELLIPSIS */ 430 431 /* Whether enum qb_log_conf supports QB_LOG_CONF_MAX_LINE_LEN */ 432 /* #undef HAVE_qb_log_conf_QB_LOG_CONF_MAX_LINE_LEN */ 433 434 /* Location for CIB secrets */ 435 #define LRM_CIBSECRETS_DIR "/var/lib/pacemaker/lrm/secrets" 436 437 /* Define if the OS needs help to load dependent libraries for dlopen(). */ 438 /* #undef LTDL_DLOPEN_DEPLIBS */ 439 440 /* Define to the system default library search path. */ 441 #define LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib64//bind9-export/:/usr/lib64/dyninst:/usr/lib64/iscsi" 442 443 /* The archive extension */ 444 #define LT_LIBEXT "a" 445 446 /* The archive prefix */ 447 #define LT_LIBPREFIX "lib" 448 449 /* Define to the extension used for runtime loadable modules, say, ".so". */ 450 #define LT_MODULE_EXT ".so" 451 452 /* Define to the name of the environment variable that determines the run-time 453 module search path. */ 454 #define LT_MODULE_PATH_VAR "LD_LIBRARY_PATH" 455 456 /* Define to the sub-directory where libtool stores uninstalled libraries. */ 457 #define LT_OBJDIR ".libs/" 458 459 /* Define to the shared library suffix, say, ".dylib". */ 460 /* #undef LT_SHARED_EXT */ 461 462 /* Define to the shared archive member specification, say "(shr.o)". */ 463 /* #undef LT_SHARED_LIB_MEMBER */ 464 465 /* Directory for nagios plugins metadata */ 466 #define NAGIOS_METADATA_DIR "/usr/share/nagios/plugins-metadata" 467 468 /* Directory for nagios plugins */ 469 #define NAGIOS_PLUGIN_DIR "/usr/libexec/nagios/plugins" 470 471 /* Define if dlsym() requires a leading underscore in symbol names. */ 472 /* #undef NEED_USCORE */ 473 474 /* OCF directories to search for resource agents */ 475 #define OCF_RA_PATH "/usr/lib/ocf/resource.d" 476 477 /* OCF root directory for resource agents and libraries */ 478 #define OCF_ROOT_DIR "/usr/lib/ocf" 479 480 /* Where to keep configuration files like authkey */ 481 #define PACEMAKER_CONFIG_DIR "/etc/pacemaker" 482 483 /* Version number of this Pacemaker build */ 484 #define PACEMAKER_VERSION "2.1.2" 485 486 /* Name of package */ 487 #define PACKAGE "pacemaker" 488 489 /* Define to the address where bug reports for this package should be sent. */ 490 #define PACKAGE_BUGREPORT "users@clusterlabs.org" 491 492 /* Define to the full name of this package. */ 493 #define PACKAGE_NAME "pacemaker" 494 495 /* Define to the full name and version of this package. */ 496 #define PACKAGE_STRING "pacemaker 2.1.2" 497 498 /* Define to the one symbol short name of this package. */ 499 #define PACKAGE_TARNAME "pacemaker" 500 501 /* Define to the home page for this package. */ 502 #define PACKAGE_URL "https://ClusterLabs.org/pacemaker/" 503 504 /* Define to the version of this package. */ 505 #define PACKAGE_VERSION "2.1.2" 506 507 /* GnuTLS cipher priorities */ 508 #define PCMK_GNUTLS_PRIORITIES "NORMAL" 509 510 /* Location for modifiable per-process data */ 511 #define PCMK_RUN_DIR "/var/run" 512 513 /* Keep certain output compatible with 2.0 release series */ 514 #define PCMK__COMPAT_2_0 1 515 516 /* Default value for concurrent-fencing cluster option */ 517 #define PCMK__CONCURRENT_FENCING_DEFAULT "false" 518 519 /* Location for executable fence agents */ 520 #define PCMK__FENCE_BINDIR "/usr/sbin" 521 522 /* Location for LSB init scripts */ 523 #define PCMK__LSB_INIT_DIR "/etc/init.d" 524 525 /* Default value for resource-stickiness resource meta-attribute */ 526 #define PCMK__RESOURCE_STICKINESS_DEFAULT 0 527 528 /* Default value for SBD_SYNC_RESOURCE_STARTUP environment variable */ 529 #define PCMK__SBD_SYNC_DEFAULT false 530 531 /* Where to keep scheduler outputs */ 532 #define PE_STATE_DIR "/var/lib/pacemaker/pengine" 533 534 /* Location for system binaries */ 535 #define SBIN_DIR "/usr/sbin" 536 537 /* The size of `char', as computed by sizeof. */ 538 #define SIZEOF_CHAR 1 539 540 /* The size of `int', as computed by sizeof. */ 541 #define SIZEOF_INT 4 542 543 /* The size of `long', as computed by sizeof. */ 544 #define SIZEOF_LONG 8 545 546 /* The size of `long long', as computed by sizeof. */ 547 #define SIZEOF_LONG_LONG 8 548 549 /* The size of `short', as computed by sizeof. */ 550 #define SIZEOF_SHORT 2 551 552 /* */ 553 #define SSCANF_HAS_M 1 554 555 /* Define to 1 if you have the ANSI C header files. */ 556 #define STDC_HEADERS 1 557 558 /* Support CIB secrets */ 559 #define SUPPORT_CIBSECRETS 1 560 561 /* Support the Corosync messaging and membership layer */ 562 #define SUPPORT_COROSYNC 1 563 564 /* Support dbus */ 565 #define SUPPORT_DBUS 1 566 567 /* Support nagios plugins */ 568 #define SUPPORT_NAGIOS 1 569 570 /* Define to 1 if procfs is supported */ 571 #define SUPPORT_PROCFS 1 572 573 /* Support profiling */ 574 #define SUPPORT_PROFILING 0 575 576 /* Support systemd resources */ 577 #define SUPPORT_SYSTEMD 1 578 579 /* Support Upstart resources */ 580 #define SUPPORT_UPSTART 0 581 582 /* Correct format specifier for U32T */ 583 #define U32T PRIu32 584 585 /* Correct format specifier for U64T */ 586 #define U64T PRIu64 587 588 /* Correct format specifier for U64TS */ 589 #define U64TS SCNu64 590 591 /* Define if Unix socket auth method is getpeereid(s, &uid, &gid) */ 592 /* #undef US_AUTH_GETPEEREID */ 593 594 /* Define if Unix socket auth method is getpeercred(s, &ucred) */ 595 /* #undef US_AUTH_GETPEERUCRED */ 596 597 /* Define if Unix socket auth method is getsockopt(s, SO_PEERCRED, 598 &sockpeercred, ...) */ 599 /* #undef US_AUTH_PEERCRED_SOCKPEERCRED */ 600 601 /* Define if Unix socket auth method is getsockopt(s, SO_PEERCRED, &ucred, 602 ...) */ 603 #define US_AUTH_PEERCRED_UCRED 1 604 605 /* Valgrind command */ 606 #define VALGRIND_BIN "/usr/bin/valgrind" 607 608 /* Version number of package */ 609 #define VERSION "2.1.2" 610 611 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 612 significant byte first (like Motorola and SPARC, unlike Intel). */ 613 #if defined AC_APPLE_UNIVERSAL_BUILD 614 # if defined __BIG_ENDIAN__ 615 # define WORDS_BIGENDIAN 1 616 # endif 617 #else 618 # ifndef WORDS_BIGENDIAN 619 /* # undef WORDS_BIGENDIAN */ 620 # endif 621 #endif 622 623 /* Correct format specifier for X32T */ 624 #define X32T PRIx32 625 626 /* True if the compiler says it groks GNU C version MAJOR.MINOR. */ 627 #if defined __GNUC__ && defined __GNUC_MINOR__ 628 # define _GL_GNUC_PREREQ(major, minor) \ 629 ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__)) 630 #else 631 # define _GL_GNUC_PREREQ(major, minor) 0 632 #endif 633 634 635 /* The _Noreturn keyword of C11. */ 636 #ifndef _Noreturn 637 # if (defined __cplusplus \ 638 && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ 639 || (defined _MSC_VER && 1900 <= _MSC_VER)) \ 640 && 0) 641 /* [[noreturn]] is not practically usable, because with it the syntax 642 extern _Noreturn void func (...); 643 would not be valid; such a declaration would only be valid with 'extern' 644 and '_Noreturn' swapped, or without the 'extern' keyword. However, some 645 AIX system header files and several gnulib header files use precisely 646 this syntax with 'extern'. */ 647 # define _Noreturn [[noreturn]] 648 # elif ((!defined __cplusplus || defined __clang__) \ 649 && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ 650 || _GL_GNUC_PREREQ (4, 7) \ 651 || (defined __apple_build_version__ \ 652 ? 6000000 <= __apple_build_version__ \ 653 : 3 < __clang_major__ + (5 <= __clang_minor__)))) 654 /* _Noreturn works as-is. */ 655 # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C 656 # define _Noreturn __attribute__ ((__noreturn__)) 657 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) 658 # define _Noreturn __declspec (noreturn) 659 # else 660 # define _Noreturn 661 # endif 662 #endif 663 664 665 /* Define so that glibc/gnulib argp.h does not typedef error_t. */ 666 /* #undef __error_t_defined */ 667 668 /* The _GL_ASYNC_SAFE marker should be attached to functions that are 669 signal handlers (for signals other than SIGABRT, SIGPIPE) or can be 670 invoked from such signal handlers. Such functions have some restrictions: 671 * All functions that it calls should be marked _GL_ASYNC_SAFE as well, 672 or should be listed as async-signal-safe in POSIX 673 <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04> 674 section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in 675 particular, are NOT async-signal-safe. 676 * All memory locations (variables and struct fields) that these functions 677 access must be marked 'volatile'. This holds for both read and write 678 accesses. Otherwise the compiler might optimize away stores to and 679 reads from such locations that occur in the program, depending on its 680 data flow analysis. For example, when the program contains a loop 681 that is intended to inspect a variable set from within a signal handler 682 while (!signal_occurred) 683 ; 684 the compiler is allowed to transform this into an endless loop if the 685 variable 'signal_occurred' is not declared 'volatile'. 686 Additionally, recall that: 687 * A signal handler should not modify errno (except if it is a handler 688 for a fatal signal and ends by raising the same signal again, thus 689 provoking the termination of the process). If it invokes a function 690 that may clobber errno, it needs to save and restore the value of 691 errno. */ 692 #define _GL_ASYNC_SAFE 693 694 695 /* Attributes. */ 696 #ifdef __has_attribute 697 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) 698 #else 699 # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr 700 # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3) 701 # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2) 702 # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3) 703 # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3) 704 # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95) 705 # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1) 706 # define _GL_ATTR_diagnose_if 0 707 # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3) 708 # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1) 709 # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0) 710 # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7) 711 # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6) 712 # ifdef _ICC 713 # define _GL_ATTR_may_alias 0 714 # else 715 # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3) 716 # endif 717 # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0) 718 # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1) 719 # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3) 720 # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0) 721 # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3) 722 # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7) 723 # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96) 724 # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9) 725 # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0) 726 # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7) 727 # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4) 728 #endif 729 730 731 #if _GL_HAS_ATTRIBUTE (alloc_size) 732 # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args)) 733 #else 734 # define _GL_ATTRIBUTE_ALLOC_SIZE(args) 735 #endif 736 737 #if _GL_HAS_ATTRIBUTE (always_inline) 738 # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__)) 739 #else 740 # define _GL_ATTRIBUTE_ALWAYS_INLINE 741 #endif 742 743 #if _GL_HAS_ATTRIBUTE (artificial) 744 # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__)) 745 #else 746 # define _GL_ATTRIBUTE_ARTIFICIAL 747 #endif 748 749 /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at 750 <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>. 751 Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */ 752 #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__ 753 # ifndef __SUNPRO_C 754 # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__)) 755 # else 756 # define _GL_ATTRIBUTE_COLD __attribute__ ((cold)) 757 # endif 758 #else 759 # define _GL_ATTRIBUTE_COLD 760 #endif 761 762 #if _GL_HAS_ATTRIBUTE (const) 763 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) 764 #else 765 # define _GL_ATTRIBUTE_CONST 766 #endif 767 768 #if 201710L < __STDC_VERSION__ 769 # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]] 770 #elif _GL_HAS_ATTRIBUTE (deprecated) 771 # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 772 #else 773 # define _GL_ATTRIBUTE_DEPRECATED 774 #endif 775 776 #if _GL_HAS_ATTRIBUTE (error) 777 # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg))) 778 # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg))) 779 #elif _GL_HAS_ATTRIBUTE (diagnose_if) 780 # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error"))) 781 # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning"))) 782 #else 783 # define _GL_ATTRIBUTE_ERROR(msg) 784 # define _GL_ATTRIBUTE_WARNING(msg) 785 #endif 786 787 #if _GL_HAS_ATTRIBUTE (externally_visible) 788 # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible)) 789 #else 790 # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE 791 #endif 792 793 /* FALLTHROUGH is special, because it always expands to something. */ 794 #if 201710L < __STDC_VERSION__ 795 # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]] 796 #elif _GL_HAS_ATTRIBUTE (fallthrough) 797 # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) 798 #else 799 # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0) 800 #endif 801 802 #if _GL_HAS_ATTRIBUTE (format) 803 # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) 804 #else 805 # define _GL_ATTRIBUTE_FORMAT(spec) 806 #endif 807 808 #if _GL_HAS_ATTRIBUTE (leaf) 809 # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__)) 810 #else 811 # define _GL_ATTRIBUTE_LEAF 812 #endif 813 814 /* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */ 815 #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C 816 # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) 817 #else 818 # define _GL_ATTRIBUTE_MAY_ALIAS 819 #endif 820 821 #if 201710L < __STDC_VERSION__ 822 # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]] 823 #elif _GL_HAS_ATTRIBUTE (unused) 824 # define _GL_ATTRIBUTE_MAYBE_UNUSED __attribute__ ((__unused__)) 825 #else 826 # define _GL_ATTRIBUTE_MAYBE_UNUSED 827 #endif 828 /* Earlier spellings of this macro. */ 829 #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED 830 #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED 831 832 #if _GL_HAS_ATTRIBUTE (malloc) 833 # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) 834 #else 835 # define _GL_ATTRIBUTE_MALLOC 836 #endif 837 838 #if 201710L < __STDC_VERSION__ 839 # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]] 840 #elif _GL_HAS_ATTRIBUTE (warn_unused_result) 841 # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__)) 842 #else 843 # define _GL_ATTRIBUTE_NODISCARD 844 #endif 845 846 #if _GL_HAS_ATTRIBUTE (noinline) 847 # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__)) 848 #else 849 # define _GL_ATTRIBUTE_NOINLINE 850 #endif 851 852 #if _GL_HAS_ATTRIBUTE (nonnull) 853 # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args)) 854 #else 855 # define _GL_ATTRIBUTE_NONNULL(args) 856 #endif 857 858 #if _GL_HAS_ATTRIBUTE (nonstring) 859 # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__)) 860 #else 861 # define _GL_ATTRIBUTE_NONSTRING 862 #endif 863 864 /* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */ 865 866 #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus 867 # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) 868 #else 869 # define _GL_ATTRIBUTE_NOTHROW 870 #endif 871 872 #if _GL_HAS_ATTRIBUTE (packed) 873 # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__)) 874 #else 875 # define _GL_ATTRIBUTE_PACKED 876 #endif 877 878 #if _GL_HAS_ATTRIBUTE (pure) 879 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 880 #else 881 # define _GL_ATTRIBUTE_PURE 882 #endif 883 884 #if _GL_HAS_ATTRIBUTE (returns_nonnull) 885 # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) 886 #else 887 # define _GL_ATTRIBUTE_RETURNS_NONNULL 888 #endif 889 890 #if _GL_HAS_ATTRIBUTE (sentinel) 891 # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos)) 892 #else 893 # define _GL_ATTRIBUTE_SENTINEL(pos) 894 #endif 895 896 897 /* To support C++ as well as C, use _GL_UNUSED_LABEL with trailing ';'. */ 898 #if !defined __cplusplus || _GL_GNUC_PREREQ (4, 5) 899 # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_MAYBE_UNUSED 900 #else 901 # define _GL_UNUSED_LABEL 902 #endif 903 904 905 /* Define to a type to use for 'error_t' if it is not otherwise available. */ 906 /* #undef error_t */ 907 908 /* Please see the Gnulib manual for how to use these macros. 909 910 Suppress extern inline with HP-UX cc, as it appears to be broken; see 911 <https://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>. 912 913 Suppress extern inline with Sun C in standards-conformance mode, as it 914 mishandles inline functions that call each other. E.g., for 'inline void f 915 (void) { } inline void g (void) { f (); }', c99 incorrectly complains 916 'reference to static identifier "f" in extern inline function'. 917 This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16. 918 919 Suppress extern inline (with or without __attribute__ ((__gnu_inline__))) 920 on configurations that mistakenly use 'static inline' to implement 921 functions or macros in standard C headers like <ctype.h>. For example, 922 if isdigit is mistakenly implemented via a static inline function, 923 a program containing an extern inline function that calls isdigit 924 may not work since the C standard prohibits extern inline functions 925 from calling static functions (ISO C 99 section 6.7.4.(3). 926 This bug is known to occur on: 927 928 OS X 10.8 and earlier; see: 929 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html 930 931 DragonFly; see 932 http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log 933 934 FreeBSD; see: 935 https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html 936 937 OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and 938 for clang but remains for g++; see <https://trac.macports.org/ticket/41033>. 939 Assume DragonFly and FreeBSD will be similar. 940 941 GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 942 inline semantics, unless -fgnu89-inline is used. It defines a macro 943 __GNUC_STDC_INLINE__ to indicate this situation or a macro 944 __GNUC_GNU_INLINE__ to indicate the opposite situation. 945 GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline 946 semantics but warns, unless -fgnu89-inline is used: 947 warning: C99 inline functions are not supported; using GNU89 948 warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute 949 It defines a macro __GNUC_GNU_INLINE__ to indicate this situation. 950 */ 951 #if (((defined __APPLE__ && defined __MACH__) \ 952 || defined __DragonFly__ || defined __FreeBSD__) \ 953 && (defined __header_inline \ 954 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ 955 && ! defined __clang__) \ 956 : ((! defined _DONT_USE_CTYPE_INLINE_ \ 957 && (defined __GNUC__ || defined __cplusplus)) \ 958 || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ 959 && defined __GNUC__ && ! defined __cplusplus)))) 960 # define _GL_EXTERN_INLINE_STDHEADER_BUG 961 #endif 962 #if ((__GNUC__ \ 963 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 964 : (199901L <= __STDC_VERSION__ \ 965 && !defined __HP_cc \ 966 && !defined __PGI \ 967 && !(defined __SUNPRO_C && __STDC__))) \ 968 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 969 # define _GL_INLINE inline 970 # define _GL_EXTERN_INLINE extern inline 971 # define _GL_EXTERN_INLINE_IN_USE 972 #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 973 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 974 # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ 975 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 976 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 977 # else 978 # define _GL_INLINE extern inline 979 # endif 980 # define _GL_EXTERN_INLINE extern 981 # define _GL_EXTERN_INLINE_IN_USE 982 #else 983 # define _GL_INLINE static _GL_UNUSED 984 # define _GL_EXTERN_INLINE static _GL_UNUSED 985 #endif 986 987 /* In GCC 4.6 (inclusive) to 5.1 (exclusive), 988 suppress bogus "no previous prototype for 'FOO'" 989 and "no previous declaration for 'FOO'" diagnostics, 990 when FOO is an inline function in the header; see 991 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and 992 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */ 993 #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__ 994 # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ 995 # define _GL_INLINE_HEADER_CONST_PRAGMA 996 # else 997 # define _GL_INLINE_HEADER_CONST_PRAGMA \ 998 _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") 999 # endif 1000 # define _GL_INLINE_HEADER_BEGIN \ 1001 _Pragma ("GCC diagnostic push") \ 1002 _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ 1003 _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ 1004 _GL_INLINE_HEADER_CONST_PRAGMA 1005 # define _GL_INLINE_HEADER_END \ 1006 _Pragma ("GCC diagnostic pop") 1007 #else 1008 # define _GL_INLINE_HEADER_BEGIN 1009 # define _GL_INLINE_HEADER_END 1010 #endif 1011 1012 /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports 1013 the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of 1014 earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. 1015 __APPLE__ && __MACH__ test for Mac OS X. 1016 __APPLE_CC__ tests for the Apple compiler and its version. 1017 __STDC_VERSION__ tests for the C99 mode. */ 1018 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ 1019 # define __GNUC_STDC_INLINE__ 1 1020 #endif 1021 1022 /* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where 1023 n1 and n2 are expressions without side effects, that evaluate to real 1024 numbers (excluding NaN). 1025 It returns 1026 1 if n1 > n2 1027 0 if n1 == n2 1028 -1 if n1 < n2 1029 The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional 1030 jump with nearly all GCC versions up to GCC 10. 1031 This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many 1032 GCC versions up to GCC 9. 1033 The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9 1034 avoids conditional jumps in all GCC versions >= 3.4. */ 1035 #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2))) 1036 1037 1038 /* Define to the equivalent of the C99 'restrict' keyword, or to 1039 nothing if this is not supported. Do not define if restrict is 1040 supported directly. */ 1041 #define restrict __restrict 1042 /* Work around a bug in older versions of Sun C++, which did not 1043 #define __restrict__ or support _Restrict or __restrict__ 1044 even though the corresponding Sun C compiler ended up with 1045 "#define restrict _Restrict" or "#define restrict __restrict__" 1046 in the previous line. This workaround can be removed once 1047 we assume Oracle Developer Studio 12.5 (2016) or later. */ 1048 #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ 1049 # define _Restrict 1050 # define __restrict__ 1051 #endif 1052 1053 /* Define to `unsigned int' if <sys/types.h> does not define. */ 1054 /* #undef size_t */