PageRenderTime 26ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/openser-1.3.4-tls/version.h

#
C Header | 199 lines | 142 code | 34 blank | 23 comment | 0 complexity | b69ba9717a8427936494560766fb115e MD5 | raw file
Possible License(s): AGPL-1.0
  1. /*
  2. * $Id: version.h 5042 2008-10-08 10:52:07Z henningw $
  3. *
  4. * version and compile flags macros
  5. *
  6. * Copyright (C) 2004 FhG Fokus
  7. *
  8. * This file is part of openser, a free SIP server.
  9. *
  10. * openser is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version
  14. *
  15. * openser is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. #ifndef version_h
  25. #define version_h
  26. #define OPENSER_FULL_VERSION NAME " " VERSION " (" ARCH "/" OS ")"
  27. #ifdef STATISTICS
  28. #define STATS_STR "STATS: On"
  29. #else
  30. #define STATS_STR "STATS: Off"
  31. #endif
  32. #ifdef USE_IPV6
  33. #define USE_IPV6_STR ", USE_IPV6"
  34. #else
  35. #define USE_IPV6_STR ""
  36. #endif
  37. #ifdef USE_TCP
  38. #define USE_TCP_STR ", USE_TCP"
  39. #else
  40. #define USE_TCP_STR ""
  41. #endif
  42. #ifdef USE_TLS
  43. #define USE_TLS_STR ", USE_TLS"
  44. #else
  45. #define USE_TLS_STR ""
  46. #endif
  47. #ifdef USE_SCTP
  48. #define USE_SCTP_STR ", USE_SCTP"
  49. #else
  50. #define USE_SCTP_STR ""
  51. #endif
  52. #ifdef DISABLE_NAGLE
  53. #define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
  54. #else
  55. #define DISABLE_NAGLE_STR ""
  56. #endif
  57. #ifdef USE_MCAST
  58. #define USE_MCAST_STR ", USE_MCAST"
  59. #else
  60. #define USE_MCAST_STR ""
  61. #endif
  62. #ifdef NO_DEBUG
  63. #define NO_DEBUG_STR ", NO_DEBUG"
  64. #else
  65. #define NO_DEBUG_STR ""
  66. #endif
  67. #ifdef NO_LOG
  68. #define NO_LOG_STR ", NO_LOG"
  69. #else
  70. #define NO_LOG_STR ""
  71. #endif
  72. #ifdef EXTRA_DEBUG
  73. #define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
  74. #else
  75. #define EXTRA_DEBUG_STR ""
  76. #endif
  77. #ifdef SHM_MEM
  78. #define SHM_MEM_STR ", SHM_MEM"
  79. #else
  80. #define SHM_MEM_STR ""
  81. #endif
  82. #ifdef SHM_MMAP
  83. #define SHM_MMAP_STR ", SHM_MMAP"
  84. #else
  85. #define SHM_MMAP_STR ""
  86. #endif
  87. #ifdef PKG_MALLOC
  88. #define PKG_MALLOC_STR ", PKG_MALLOC"
  89. #else
  90. #define PKG_MALLOC_STR ""
  91. #endif
  92. #ifdef VQ_MALLOC
  93. #define VQ_MALLOC_STR ", VQ_MALLOC"
  94. #else
  95. #define VQ_MALLOC_STR ""
  96. #endif
  97. #ifdef F_MALLOC
  98. #define F_MALLOC_STR ", F_MALLOC"
  99. #else
  100. #define F_MALLOC_STR ""
  101. #endif
  102. #ifdef USE_SHM_MEM
  103. #define USE_SHM_MEM_STR ", USE_SHM_MEM"
  104. #else
  105. #define USE_SHM_MEM_STR ""
  106. #endif
  107. #ifdef DBG_QM_MALLOC
  108. #define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
  109. #else
  110. #define DBG_QM_MALLOC_STR ""
  111. #endif
  112. #ifdef DBG_F_MALLOC
  113. #define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
  114. #else
  115. #define DBG_F_MALLOC_STR ""
  116. #endif
  117. #ifdef DEBUG_DMALLOC
  118. #define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
  119. #else
  120. #define DEBUG_DMALLOC_STR ""
  121. #endif
  122. #ifdef QM_JOIN_FREE
  123. #define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
  124. #else
  125. #define QM_JOIN_FREE_STR ""
  126. #endif
  127. #ifdef FAST_LOCK
  128. #ifdef BUSY_WAIT
  129. #define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
  130. #elif defined (ADAPTIVE_WAIT)
  131. #define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
  132. #else
  133. #define FAST_LOCK_STR ", FAST_LOCK"
  134. #endif
  135. #else
  136. #define FAST_LOCK_STR ""
  137. #endif
  138. #ifdef USE_PTHREAD_MUTEX
  139. #define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
  140. #else
  141. #define USE_PTHREAD_MUTEX_STR ""
  142. #endif
  143. #ifdef USE_POSIX_SEM
  144. #define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
  145. #else
  146. #define USE_POSIX_SEM_STR ""
  147. #endif
  148. #ifdef USE_SYSV_SEM
  149. #define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
  150. #else
  151. #define USE_SYSV_SEM_STR ""
  152. #endif
  153. #ifdef NOSMP
  154. #define NOSMP_STR "-NOSMP"
  155. #else
  156. #define NOSMP_STR ""
  157. #endif
  158. #define OPENSER_COMPILE_FLAGS \
  159. STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
  160. USE_SCTP_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
  161. SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR VQ_MALLOC_STR F_MALLOC_STR \
  162. USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
  163. QM_JOIN_FREE_STR FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR \
  164. USE_POSIX_SEM_STR USE_SYSV_SEM_STR
  165. #endif