x_ac__system_configuration.m4 749 B

123456789101112131415161718192021
  1. ##*****************************************************************************
  2. # AUTHOR:
  3. # Moe Jette <jette@llnl.gov>
  4. #
  5. # SYNOPSIS:
  6. # X_AC__SYSTEM_CONFIGURATION
  7. #
  8. # DESCRIPTION:
  9. # Tests for existence of the _system_configuration structure.
  10. #
  11. # WARNINGS:
  12. # This macro must be placed after AC_PROG_CC or equivalent.
  13. ##*****************************************************************************
  14. AC_DEFUN([X_AC__SYSTEM_CONFIGURATION], [
  15. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/systemcfg.h>]], [[double x = _system_configuration.physmem;]])],[AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1,
  16. [Define to 1 if you have the external variable,
  17. _system_configuration with a member named physmem.])],[])
  18. ])