Configure.h.in 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*=========================================================================
  2. Program: KWSys - Kitware System Library
  3. Module: $RCSfile$
  4. Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
  5. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  8. PURPOSE. See the above copyright notices for more information.
  9. =========================================================================*/
  10. #ifndef @KWSYS_NAMESPACE@_Configure_h
  11. #define @KWSYS_NAMESPACE@_Configure_h
  12. /* If we are building a kwsys .c or .cxx file, let it use the kwsys
  13. namespace. When not building a kwsys source file these macros are
  14. temporarily defined inside the headers that use them. */
  15. #if defined(KWSYS_NAMESPACE)
  16. # define kwsys_ns(x) @KWSYS_NAMESPACE@##x
  17. # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
  18. #endif
  19. /* Whether Large File Support is requested. */
  20. #define @KWSYS_NAMESPACE@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@
  21. /* Whether Large File Support is available. */
  22. #if @KWSYS_NAMESPACE@_LFS_REQUESTED
  23. # define @KWSYS_NAMESPACE@_LFS_AVAILABLE @KWSYS_LFS_AVAILABLE@
  24. #endif
  25. /* Setup Large File Support if requested. */
  26. #if @KWSYS_NAMESPACE@_LFS_REQUESTED
  27. /* Since LFS is requested this header must be included before system
  28. headers whether or not LFS is available. */
  29. # if 0 && (defined(_SYS_TYPES_H) || defined(_SYS_TYPES_INCLUDED))
  30. # error "@KWSYS_NAMESPACE@/Configure.h must be included before sys/types.h"
  31. # endif
  32. /* Enable the large file API if it is available. */
  33. # if @KWSYS_NAMESPACE@_LFS_AVAILABLE && \
  34. !defined(@KWSYS_NAMESPACE@_LFS_NO_DEFINES)
  35. # if !defined(_LARGEFILE_SOURCE) && \
  36. !defined(@KWSYS_NAMESPACE@_LFS_NO_DEFINE_LARGEFILE_SOURCE)
  37. # define _LARGEFILE_SOURCE
  38. # endif
  39. # if !defined(_LARGEFILE64_SOURCE) && \
  40. !defined(@KWSYS_NAMESPACE@_LFS_NO_DEFINE_LARGEFILE64_SOURCE)
  41. # define _LARGEFILE64_SOURCE
  42. # endif
  43. # if !defined(_LARGE_FILES) && \
  44. !defined(@KWSYS_NAMESPACE@_LFS_NO_DEFINE_LARGE_FILES)
  45. # define _LARGE_FILES
  46. # endif
  47. # if !defined(_FILE_OFFSET_BITS) && \
  48. !defined(@KWSYS_NAMESPACE@_LFS_NO_DEFINE_FILE_OFFSET_BITS)
  49. # define _FILE_OFFSET_BITS 64
  50. # endif
  51. # if 0 && (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS < 64)
  52. # error "_FILE_OFFSET_BITS must be defined to at least 64"
  53. # endif
  54. # endif
  55. #endif
  56. /* Setup the export macro. */
  57. #if defined(_WIN32) && @KWSYS_BUILD_SHARED@
  58. # if defined(@KWSYS_NAMESPACE@_EXPORTS)
  59. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllexport)
  60. # else
  61. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllimport)
  62. # endif
  63. #else
  64. # define @KWSYS_NAMESPACE@_EXPORT
  65. #endif
  66. /* Enable warnings that are off by default but are useful. */
  67. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_ENABLE)
  68. # if defined(_MSC_VER)
  69. # pragma warning ( default : 4263 ) /* no override, call convention differs */
  70. # endif
  71. #endif
  72. /* Disable warnings that are on by default but occur in valid code. */
  73. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE)
  74. # if defined(_MSC_VER)
  75. # pragma warning (disable: 4097) /* typedef is synonym for class */
  76. # pragma warning (disable: 4127) /* conditional expression is constant */
  77. # pragma warning (disable: 4244) /* possible loss in conversion */
  78. # pragma warning (disable: 4251) /* missing DLL-interface */
  79. # pragma warning (disable: 4305) /* truncation from type1 to type2 */
  80. # pragma warning (disable: 4309) /* truncation of constant value */
  81. # pragma warning (disable: 4514) /* unreferenced inline function */
  82. # pragma warning (disable: 4706) /* assignment in conditional expression */
  83. # pragma warning (disable: 4710) /* function not inlined */
  84. # pragma warning (disable: 4786) /* identifier truncated in debug info */
  85. # endif
  86. #endif
  87. /* MSVC 6.0 in release mode will warn about code it produces with its
  88. optimizer. Disable the warnings specifically for this
  89. configuration. Real warnings will be revealed by a debug build or
  90. by other compilers. */
  91. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE_BOGUS)
  92. # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
  93. # pragma warning ( disable : 4701 ) /* Variable may be used uninitialized. */
  94. # pragma warning ( disable : 4702 ) /* Unreachable code. */
  95. # endif
  96. #endif
  97. #endif