DragonFly.cf 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. XCOMM $XdotOrg: xc/config/cf/DragonFly.cf,v 1.1 2005/02/19 02:02:31 marvis Exp $
  2. #define UseElfFormat YES
  3. #define OSBinaryFormat [ELF]
  4. #ifndef OSName
  5. #define OSName DefaultOSName OSBinaryFormat
  6. #endif
  7. #ifndef OSVendor
  8. #define OSVendor /**/
  9. #endif
  10. #ifndef OSMajorVersion
  11. #define OSMajorVersion DefaultOSMajorVersion
  12. #endif
  13. #ifndef OSMinorVersion
  14. #define OSMinorVersion DefaultOSMinorVersion
  15. #endif
  16. #ifndef OSRelVersion
  17. /* Include this to get finer-grained information about the OS version */
  18. #include "/usr/include/osreldate.h"
  19. #define OSRelVersion __DragonFly_version
  20. #endif
  21. XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion) (OSRelVersion)
  22. /*
  23. * Base OS setup
  24. */
  25. #define HasCplusplus YES
  26. #define GccUsesGas YES
  27. #define UseGas YES
  28. #define GnuCpp YES
  29. #define HasBasename YES
  30. #define HasBSD44Sockets YES
  31. #define HasDlopen YES
  32. #define HasGetIfAddrs YES
  33. #define HasIssetugid YES
  34. #define HasLibCrypt YES
  35. #define HasMktemp YES
  36. #define HasNCurses YES
  37. #define HasNdbm YES
  38. #define HasPlugin YES
  39. #define HasPoll YES
  40. #define HasPutenv YES
  41. #define HasUsableFileMmap YES
  42. #define HasSetProcTitle YES
  43. #define HasShm YES
  44. #define HasSnprintf YES
  45. #define HasStrlcat YES
  46. #define HasVarDb YES
  47. #define HasVarRun YES
  48. #define HasWChar32 YES
  49. #define HasWeakSymbols UseElfFormat
  50. #define BuildXaw6 NO /*depreciated*/
  51. #define BuildXaw7 NO /*depreciated*/
  52. #define BuildXaw YES /*needed*/
  53. #ifndef BuildPDFdocs
  54. #define BuildPDFdocs NO
  55. #endif
  56. #define IPv6SocketsAlsoIPv4 NO
  57. #define InstallXloadSetGID NO
  58. /*
  59. * Multi-thread safe libs
  60. */
  61. #ifndef HasLibPthread
  62. # define HasLibPthread NO
  63. #endif
  64. #define HasPosixThreads YES
  65. #define ThreadedX YES
  66. #define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
  67. #define HasThreadSafeAPI YES
  68. #define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI
  69. #if HasLibPthread
  70. # define ThreadsLibraries -lpthread
  71. #else
  72. # define ThreadsLibraries -pthread
  73. #endif
  74. #define AvoidNullMakeCommand YES
  75. #define StripInstalledPrograms YES
  76. #define CompressAllFonts YES
  77. #define Malloc0ReturnsNull YES
  78. #define NeedConstPrototypes YES
  79. #define NeedFunctionPrototypes YES
  80. #define NeedNestedPrototypes YES
  81. #define NeedVarargsPrototypes YES
  82. #define NeedWidePrototypes NO
  83. #define MkdirHierCmd mkdir -p
  84. #define LexCmd flex -l
  85. #define HasFlex YES
  86. #ifndef CcCmd
  87. # define CcCmd cc
  88. #endif
  89. #ifndef CplusplusCmd
  90. # define CplusplusCmd c++
  91. #endif
  92. #define CppCmd /usr/bin/cpp
  93. #define PreProcessCmd CppCmd
  94. #define StandardCppOptions -traditional
  95. #define StandardCppDefines /**/
  96. #ifndef DefaultCCOptions
  97. # if defined(UseInstalled)
  98. # define DefaultCCOptions /**/
  99. # else
  100. # if defined(HasGcc3) && HasGcc3
  101. # define NoSystemWarn -Wno-system-headers
  102. # else
  103. # define NoSystemWarn
  104. # endif
  105. # define DefaultCCOptions -ansi NoSystemWarn -Dasm=__asm GccWarningOptions
  106. #endif
  107. #ifndef ExtraLibraries
  108. /* support for multi-byte locales is in libxpg4 rather than libc */
  109. #define ExtraLibraries -lxpg4
  110. #endif
  111. #define HasSetUserContext YES
  112. #define HasGetpeereid YES
  113. #define HasMTRRSupport YES
  114. #ifndef BuildXF86DRI
  115. # define BuildXF86DRI YES
  116. #endif
  117. #if defined(i386Architecture)
  118. #define HasAgpGart YES
  119. #endif
  120. /*
  121. * SSE and 3DNow will be autodetected, so binutils is the only
  122. * requirement for enabling this.
  123. */
  124. #if defined(i386Architecture)
  125. # define HasX86Support YES
  126. # define HasMMXSupport YES
  127. # define Has3DNowSupport YES
  128. # define HasSSESupport YES
  129. #else
  130. # define HasX86Support NO
  131. # define HasMMXSupport NO
  132. # define Has3DNowSupport NO
  133. # define HasSSESupport NO
  134. #endif
  135. #ifndef BuildDmx
  136. #define BuildDmx YES
  137. #endif
  138. #ifndef UseRpath
  139. # define UseRpath YES
  140. #endif
  141. #ifndef RpathLoadFlags
  142. # if UseRpath
  143. # define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
  144. # else
  145. # define RpathLoadFlags /**/
  146. # endif
  147. #endif
  148. #ifndef ExtraLoadFlags
  149. # if !defined(UseInstalled)
  150. # define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
  151. # else
  152. # define ExtraLoadFlags RpathLoadFlags
  153. # endif
  154. #endif
  155. #endif
  156. #ifndef LibraryRpathLoadFlags
  157. # if UseRpath
  158. # define LibraryRpathLoadFlags -rpath $(USRLIBDIRPATH)
  159. # else
  160. # define LibraryRpathLoadFlags /**/
  161. # endif
  162. #endif
  163. #ifndef SharedLibraryLoadFlags
  164. # define SharedLibraryLoadFlags -shared LibraryRpathLoadFlags
  165. #endif
  166. #ifndef HasZlib
  167. # define HasZlib YES
  168. #endif
  169. #ifndef HasPam
  170. # define HasPam YES
  171. #endif
  172. /* Take from FreeBSD */
  173. /* There are two options for building. One is to assume that the system has
  174. * many of the dependencies provided by the ports tree. The other is to just
  175. * build everything from this tree.
  176. */
  177. #ifndef HasStandardPorts
  178. # define HasStandardPorts YES
  179. #endif
  180. #ifndef LocalBase
  181. # define LocalBase /usr/local
  182. #endif
  183. #ifndef X11Base
  184. # define X11Base /usr/X11R6
  185. #endif
  186. #if HasStandardPorts
  187. #ifndef HasExpat
  188. # define HasExpat YES
  189. # define ExpatDir LocalBase
  190. #endif
  191. #ifndef HasFreetype2
  192. # define HasFreetype2 NO /* set this to YES once DragonFly ships FT218 */
  193. # define Freetype2Dir LocalBase
  194. #endif
  195. #ifndef HasFontconfig
  196. # define HasFontconfig YES
  197. # define FontconfigDir X11Base
  198. #endif
  199. #ifndef HasLibpng
  200. # define HasLibpng YES
  201. # define LibpngDir LocalBase
  202. #endif
  203. #endif /* HasStandardPorts */
  204. #undef InstallCmd
  205. #define InstallCmd /usr/bin/install
  206. #define AsmElfDefines -D__ELF__
  207. #if GccUsesGas
  208. # define GccGasOption -DGCCUSESGAS
  209. # define AsmDefines -DUSE_GAS AsmElfDefines
  210. #else
  211. # define GccGasOption /**/
  212. # define AsmDefines AsmElfDefines
  213. #endif
  214. #ifdef i386Architecture
  215. #define ServerExtraDefines GccGasOption XFree86ServerDefines
  216. #endif
  217. #if defined(Sparc64Architecture) || defined(ia64Architecture) || \
  218. defined(AMD64Architecture)
  219. #define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
  220. #endif
  221. #define StandardDefines -DCSRG_BASED
  222. #define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
  223. #define XawI18nDefines -DUSE_XWCHAR_STRING
  224. #define HasMakefileSafeInclude YES
  225. #define IncludeMakefile(file) @@# dependencies are in .depend
  226. #define DependFileName .depend
  227. #ifndef DoLoadableServer
  228. # define DoLoadableServer YES
  229. #endif
  230. #ifndef ForceNormalLib
  231. # define ForceNormalLib YES
  232. #endif
  233. #define HasMkstemp YES
  234. #define OptimizedCDebugFlags -O
  235. #ifndef PreIncDir
  236. # define PreIncDir /usr/include
  237. #endif
  238. #define HasGroff YES
  239. #define NroffCmd env GROFF_NO_SGR=y groff -Tascii
  240. #define SetTtyGroup YES
  241. #ifndef ExtraFilesToClean
  242. # define ExtraFilesToClean *.core
  243. #endif
  244. #define DefaultUserPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/local/bin
  245. #define DefaultSystemPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR)
  246. #ifndef SystemManDirectory
  247. # define SystemManDirectory /usr/share/man
  248. #endif
  249. #define InstKmemFlags -g kmem -m 2755
  250. /*
  251. * Compress manual pages
  252. */
  253. #ifndef CompressManPages
  254. # define CompressManPages NO
  255. #endif
  256. #define HasBsdMake YES
  257. #ifndef StaticLibrary
  258. # define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
  259. #endif
  260. #define DlLibrary -Wl,--export-dynamic
  261. #ifndef PamLibraries
  262. # define PamLibraries -lpam DlLibrary
  263. #endif
  264. #ifndef SharedLibXdmGreet
  265. # define SharedLibXdmGreet NO
  266. #endif
  267. /*
  268. * On FreeBSD, the run-time loader will use the built-in "rpath" before
  269. * LD_LIBRARY_PATH. This means that utilities like mkfontdir will load
  270. * installed libraries (if they exist) in preference to the ones in the
  271. * build tree, even though LD_LIBRARY_PATH points to the build tree.
  272. * This can result in the build failing. One way to avoid this is to
  273. * pre-load the libraries from the build tree.
  274. *
  275. * There should be a better way than this hack...
  276. */
  277. #if UseElfFormat
  278. #ifndef PreloadFontSetup
  279. #define PreloadFontSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(XFONTPRELOADPATTERN))`"
  280. #endif
  281. #ifndef PreloadFreetypeSetup
  282. #define PreloadFreetypeSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN))`"
  283. #endif
  284. #ifndef PreloadXFTSetup
  285. #define PreloadXFTSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN) $(XFTPRELOADPATTERN) $(XRENDERPRELOADPATTERN) $(FCPRELOADPATTERN))`"
  286. #endif
  287. #endif
  288. #ifndef HasCookieMaker
  289. # define HasCookieMaker YES
  290. # define MkCookieCmd \
  291. 'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
  292. #endif
  293. /*
  294. * A hack to work around an optimization problem with gcc 2.95.2 - 2.95.4
  295. */
  296. #if (GccMajorVersion == 2 && GccMinorVersion == 95)
  297. # define GccOptBug295
  298. #endif
  299. #include <bsdLib.rules>
  300. #include <xorg.cf>