LocalSetup.pp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. //
  2. // LocalSetup.pp
  3. //
  4. // This file contains further instructions to set up the DTOOL package
  5. // when using ppremake. In particular, it creates the dtool_config.h
  6. // file based on the user's selected configure variables. This script
  7. // need not execute when BUILD_TYPE is "autoconf"; in this case, the
  8. // dtool_config.h file will automatically be correctly generated by
  9. // configure.
  10. //
  11. #if $[ne $[BUILD_TYPE],autoconf]
  12. // A couple of variables to output the C #define and #undef
  13. // directives, since we can't type them literally.
  14. #define define #define
  15. #define undef #undef
  16. #output dtool_config.h
  17. #format straight
  18. /* dtool_config.h. Generated automatically by $[PROGRAM] $[PROGVER] from $[SOURCEFILE]. */
  19. /* Define if you have the ANSI C header files. */
  20. $[define] STDC_HEADERS 1
  21. /* Define if your processor stores words with the most significant
  22. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  23. #if $[WORDS_BIGENDIAN]
  24. $[define] WORDS_BIGENDIAN 1
  25. #else
  26. $[undef] WORDS_BIGENDIAN
  27. #endif
  28. /* Define if the X Window System is missing or not being used. */
  29. $[undef] X_DISPLAY_MISSING
  30. /* Define if lex declares yytext as a char * by default, not a char[]. */
  31. $[undef] YYTEXT_POINTER
  32. /* Define if the C++ compiler uses namespaces. */
  33. #if $[HAVE_NAMESPACE]
  34. $[define] HAVE_NAMESPACE 1
  35. #else
  36. $[undef] HAVE_NAMESPACE
  37. #endif
  38. /* Define if the C++ iostream library supports ios::binary. */
  39. #if $[HAVE_IOS_BINARY]
  40. $[define] HAVE_IOS_BINARY 1
  41. #else
  42. $[undef] HAVE_IOS_BINARY
  43. #endif
  44. /* Define if we have Python installed. */
  45. #if $[HAVE_PYTHON]
  46. $[define] HAVE_PYTHON 1
  47. #else
  48. $[undef] HAVE_PYTHON
  49. #endif
  50. /* Define if we have NSPR installed. */
  51. #if $[HAVE_NSPR]
  52. $[define] HAVE_NSPR 1
  53. #else
  54. $[undef] HAVE_NSPR
  55. #endif
  56. /* Define if we have VRPN installed. */
  57. #if $[HAVE_VRPN]
  58. $[define] HAVE_VRPN 1
  59. #else
  60. $[undef] HAVE_VRPN
  61. #endif
  62. /* Define if we have zlib installed. */
  63. #if $[HAVE_ZLIB]
  64. $[define] HAVE_ZLIB 1
  65. #else
  66. $[undef] HAVE_ZLIB
  67. #endif
  68. /* Define if we have sox libst installed. */
  69. #if $[HAVE_SOXST]
  70. $[define] HAVE_SOXST 1
  71. #else
  72. $[undef] HAVE_SOXST
  73. #endif
  74. /* Define if we have OpenGL installed and want to build for GL. */
  75. #if $[HAVE_GL]
  76. $[define] HAVE_GL 1
  77. #else
  78. $[undef] HAVE_GL
  79. #endif
  80. /* Define if we have GLX installed and want to build for GLX. */
  81. #if $[HAVE_GLX]
  82. $[define] HAVE_GLX 1
  83. #else
  84. $[undef] HAVE_GLX
  85. #endif
  86. /* Define if we have Glut installed and want to build for Glut. */
  87. #if $[HAVE_GLUT]
  88. $[define] HAVE_GLUT 1
  89. #else
  90. $[undef] HAVE_GLUT
  91. #endif
  92. /* Define if we have DirectX installed and want to build for DX. */
  93. #if $[HAVE_DX]
  94. $[define] HAVE_DX 1
  95. #else
  96. $[undef] HAVE_DX
  97. #endif
  98. /* Define if we want to build the Renderman interface. */
  99. #if $[HAVE_RIB]
  100. $[define] HAVE_RIB 1
  101. #else
  102. $[undef] HAVE_RIB
  103. #endif
  104. /* Define if we want to use mikmod for audio. */
  105. #if $[HAVE_MIKMOD]
  106. $[define] HAVE_MIKMOD 1
  107. #else
  108. $[undef] HAVE_MIKMOD
  109. #endif
  110. /* Define if we want to compile the net code. */
  111. #if $[HAVE_NET]
  112. $[define] HAVE_NET 1
  113. #else
  114. $[undef] HAVE_NET
  115. #endif
  116. /* Define if we want to compile the audio code. */
  117. #if $[HAVE_AUDIO]
  118. $[define] HAVE_AUDIO 1
  119. #else
  120. $[undef] HAVE_AUDIO
  121. #endif
  122. /* Define if we have a gettimeofday() function. */
  123. #if $[HAVE_GETTIMEOFDAY]
  124. $[define] HAVE_GETTIMEOFDAY 1
  125. #else
  126. $[undef] HAVE_GETTIMEOFDAY
  127. #endif
  128. /* Define if gettimeofday() takes only one parameter. */
  129. #if $[GETTIMEOFDAY_ONE_PARAM]
  130. $[define] GETTIMEOFDAY_ONE_PARAM 1
  131. #else
  132. $[undef] GETTIMEOFDAY_ONE_PARAM
  133. #endif
  134. /* Define if you have the getopt function. */
  135. #if $[HAVE_GETOPT]
  136. $[define] HAVE_GETOPT 1
  137. #else
  138. $[undef] HAVE_GETOPT
  139. #endif
  140. /* Define if you have the getopt_long_only function. */
  141. #if $[HAVE_GETOPT_LONG_ONLY]
  142. $[define] HAVE_GETOPT_LONG_ONLY 1
  143. #else
  144. $[undef] HAVE_GETOPT_LONG_ONLY
  145. #endif
  146. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  147. #if $[IOCTL_TERMINAL_WIDTH]
  148. $[define] IOCTL_TERMINAL_WIDTH 1
  149. #else
  150. $[undef] IOCTL_TERMINAL_WIDTH
  151. #endif
  152. /* Define if you have the <io.h> header file. */
  153. #if $[HAVE_IO_H]
  154. $[define] HAVE_IO_H 1
  155. #else
  156. $[undef] HAVE_IO_H
  157. #endif
  158. /* Define if you have the <iostream> header file. */
  159. #if $[HAVE_IOSTREAM]
  160. $[define] HAVE_IOSTREAM 1
  161. #else
  162. $[undef] HAVE_IOSTREAM
  163. #endif
  164. /* Define if you have the <malloc.h> header file. */
  165. #if $[HAVE_MALLOC_H]
  166. $[define] HAVE_MALLOC_H 1
  167. #else
  168. $[undef] HAVE_MALLOC_H
  169. #endif
  170. /* Define if you have the <alloca.h> header file. */
  171. #if $[HAVE_ALLOCA_H]
  172. $[define] HAVE_ALLOCA_H 1
  173. #else
  174. $[undef] HAVE_ALLOCA_H
  175. #endif
  176. /* Define if you have the <minmax.h> header file. */
  177. #if $[HAVE_MINMAX_H]
  178. $[define] HAVE_MINMAX_H 1
  179. #else
  180. $[undef] HAVE_MINMAX_H
  181. #endif
  182. /* Define if you have the <sstream> header file. */
  183. #if $[HAVE_SSTREAM]
  184. $[define] HAVE_SSTREAM 1
  185. #else
  186. $[undef] HAVE_SSTREAM
  187. #endif
  188. /* Define if you have the <sys/types.h> header file. */
  189. #if $[HAVE_SYS_TYPES]
  190. $[define] HAVE_SYS_TYPES 1
  191. #else
  192. $[undef] HAVE_SYS_TYPES
  193. #endif
  194. /* Define if you have the <unistd.h> header file. */
  195. #if $[HAVE_UNISTD_H]
  196. $[define] HAVE_UNISTD_H 1
  197. #else
  198. $[undef] HAVE_UNISTD_H
  199. #endif
  200. /* Name of package */
  201. $[define] PACKAGE $[PACKAGE]
  202. /* Version number of package */
  203. $[define] VERSION $[VERSION]
  204. #end dtool_config.h
  205. #endif // BUILD_TYPE