LocalSetup.pp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 GLU installed. */
  81. #if $[HAVE_GLU]
  82. $[define] HAVE_GLU 1
  83. #else
  84. $[undef] HAVE_GLU
  85. #endif
  86. /* Define if we have GLX installed and want to build for GLX. */
  87. #if $[HAVE_GLX]
  88. $[define] HAVE_GLX 1
  89. #else
  90. $[undef] HAVE_GLX
  91. #endif
  92. /* Define if we have Glut installed and want to build for Glut. */
  93. #if $[HAVE_GLUT]
  94. $[define] HAVE_GLUT 1
  95. #else
  96. $[undef] HAVE_GLUT
  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 have a gettimeofday() function. */
  111. #if $[HAVE_GETTIMEOFDAY]
  112. $[define] HAVE_GETTIMEOFDAY 1
  113. #else
  114. $[undef] HAVE_GETTIMEOFDAY
  115. #endif
  116. /* Define if gettimeofday() takes only one parameter. */
  117. #if $[GETTIMEOFDAY_ONE_PARAM]
  118. $[define] GETTIMEOFDAY_ONE_PARAM 1
  119. #else
  120. $[undef] GETTIMEOFDAY_ONE_PARAM
  121. #endif
  122. /* Define if you have the getopt function. */
  123. #if $[HAVE_GETOPT]
  124. $[define] HAVE_GETOPT 1
  125. #else
  126. $[undef] HAVE_GETOPT
  127. #endif
  128. /* Define if you have the getopt_long_only function. */
  129. #if $[HAVE_GETOPT_LONG_ONLY]
  130. $[define] HAVE_GETOPT_LONG_ONLY 1
  131. #else
  132. $[undef] HAVE_GETOPT_LONG_ONLY
  133. #endif
  134. /* Define if you have the <alloca.h> header file. */
  135. $[define] HAVE_ALLOCA_H 1
  136. /* Define if you have the <io.h> header file. */
  137. $[undef] HAVE_IO_H
  138. /* Define if you have the <iostream> header file. */
  139. #if $[HAVE_IOSTREAM]
  140. $[define] HAVE_IOSTREAM 1
  141. #else
  142. $[undef] HAVE_IOSTREAM
  143. #endif
  144. /* Define if you have the <malloc.h> header file. */
  145. #if $[HAVE_MALLOC_H]
  146. $[define] HAVE_MALLOC_H 1
  147. #else
  148. $[undef] HAVE_MALLOC_H
  149. #endif
  150. /* Define if you have the <alloca.h> header file. */
  151. #if $[HAVE_ALLOCA_H]
  152. $[define] HAVE_ALLOCA_H 1
  153. #else
  154. $[undef] HAVE_ALLOCA_H
  155. #endif
  156. /* Define if you have the <minmax.h> header file. */
  157. #if $[HAVE_MINMAX_H]
  158. $[define] HAVE_MINMAX_H 1
  159. #else
  160. $[undef] HAVE_MINMAX_H
  161. #endif
  162. /* Define if you have the <sstream> header file. */
  163. #if $[HAVE_SSTREAM]
  164. $[define] HAVE_SSTREAM 1
  165. #else
  166. $[undef] HAVE_SSTREAM
  167. #endif
  168. /* Define if you have the <sys/types.h> header file. */
  169. #if $[HAVE_SYS_TYPES]
  170. $[define] HAVE_SYS_TYPES 1
  171. #else
  172. $[undef] HAVE_SYS_TYPES
  173. #endif
  174. /* Define if you have the <unistd.h> header file. */
  175. #if $[HAVE_UNISTD_H]
  176. $[define] HAVE_UNISTD_H 1
  177. #else
  178. $[undef] HAVE_UNISTD_H
  179. #endif
  180. /* Name of package */
  181. $[define] PACKAGE $[PACKAGE]
  182. /* Version number of package */
  183. $[define] VERSION $[VERSION]
  184. #end dtool_config.h
  185. #endif // BUILD_TYPE