configure.ac 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  2. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  3. m4_define([v_maj], [4])
  4. m4_define([v_min], [11])
  5. m4_define([v_mic], [1-kno])
  6. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  7. m4_define([v_ver], [v_maj.v_min.v_mic])
  8. m4_define([lt_rev], m4_eval(v_maj + v_min))
  9. m4_define([lt_cur], v_mic)
  10. m4_define([lt_age], v_min)
  11. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  12. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  13. AC_INIT([cgminer], [v_ver], [kernel@kolivas.org])
  14. AC_PREREQ(2.59)
  15. AC_CANONICAL_SYSTEM
  16. AC_CONFIG_MACRO_DIR([m4])
  17. AC_CONFIG_SRCDIR([cgminer.c])
  18. AC_CONFIG_HEADERS([config.h])
  19. AM_INIT_AUTOMAKE([foreign subdir-objects])
  20. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  21. AC_USE_SYSTEM_EXTENSIONS
  22. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  23. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  24. m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
  25. m4_ifdef([v_rel], , [m4_define([v_rel], [])])
  26. AC_DEFINE_UNQUOTED(CGMINER_MAJOR_VERSION, [v_maj], [Major version])
  27. AC_DEFINE_UNQUOTED(CGMINER_MINOR_VERSION, [v_min], [Minor version])
  28. AC_DEFINE_UNQUOTED(CGMINER_MINOR_SUBVERSION, [v_mic], [Micro version])
  29. version_info="lt_rev:lt_cur:lt_age"
  30. release_info="v_rel"
  31. AC_SUBST(version_info)
  32. AC_SUBST(release_info)
  33. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  34. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  35. VMAJ=v_maj
  36. AC_SUBST(VMAJ)
  37. AC_CANONICAL_BUILD
  38. AC_CANONICAL_HOST
  39. dnl Make sure anyone changing configure.ac/Makefile.am has a clue
  40. AM_MAINTAINER_MODE
  41. dnl Checks for programs
  42. AC_PROG_CC
  43. gl_EARLY
  44. AC_PROG_GCC_TRADITIONAL
  45. AM_PROG_CC_C_O
  46. # This breaks autoreconf so disable it
  47. # LT_INIT([disable-shared])
  48. gl_INIT
  49. dnl Checks for header files.
  50. AC_HEADER_STDC
  51. AC_CHECK_HEADERS(syslog.h)
  52. AC_FUNC_ALLOCA
  53. have_win32=false
  54. PTHREAD_FLAGS="-lpthread"
  55. ##LIBZ_LIBS="-lz"
  56. DLOPEN_FLAGS="-ldl"
  57. WS2_LIBS=""
  58. MM_LIBS=""
  59. MATH_LIBS="-lm"
  60. RT_LIBS="-lrt"
  61. case $target in
  62. amd64-*)
  63. have_x86_64=true
  64. ;;
  65. x86_64-*)
  66. have_x86_64=true
  67. ;;
  68. *)
  69. have_x86_64=false
  70. ;;
  71. esac
  72. #CFLAGS="$CFLAGS -Wimplicit-fallthrough=0"
  73. #^ causes problem on gcc 4.9 - pass in from CFLAG if needed
  74. case $target in
  75. *-*-linux-gnu*)
  76. have_linux=true
  77. ;;
  78. *-*-mingw*)
  79. have_win32=true
  80. PTHREAD_FLAGS=""
  81. DLOPEN_FLAGS=""
  82. WS2_LIBS="-lws2_32"
  83. MM_LIBS="-lwinmm"
  84. RT_LIBS=""
  85. #AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  86. ;;
  87. powerpc-*-darwin*)
  88. have_darwin=true
  89. CFLAGS="$CFLAGS -faltivec"
  90. PTHREAD_FLAGS=""
  91. RT_LIBS=""
  92. ;;
  93. *-*-darwin*)
  94. have_darwin=true
  95. PTHREAD_FLAGS=""
  96. RT_LIBS=""
  97. ;;
  98. *-*-freebsd*)
  99. PTHREAD_FLAGS=""
  100. DLOPEN_FLAGS=""
  101. RT_LIBS=""
  102. ;;
  103. esac
  104. has_winpthread=false
  105. if test "x$have_win32" = xtrue; then
  106. has_winpthread=true
  107. AC_CHECK_LIB(winpthread, nanosleep, , has_winpthread=false)
  108. PTHREAD_LIBS=-lwinpthread
  109. fi
  110. if test "x$has_winpthread" != xtrue; then
  111. AC_CHECK_LIB(pthread, pthread_create, ,
  112. AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
  113. PTHREAD_LIBS=-lpthread
  114. fi
  115. # Drivers that are designed to be run on dedicated hardware should set standalone to yes
  116. # All drivers should prepend an x to the drivercount
  117. standalone="no"
  118. drivercount=""
  119. ants1="no"
  120. AC_ARG_ENABLE([ants1],
  121. [AC_HELP_STRING([--enable-ants1],[Compile support for Antminer S1 Bitmain STANDALONE(default disabled)])],
  122. [ants1=$enableval]
  123. )
  124. if test "x$ants1" = xyes; then
  125. AC_DEFINE([USE_ANT_S1], [1], [Defined to 1 if Antminer S1 Bitmain support is wanted])
  126. drivercount=x$drivercount
  127. standalone="yes"
  128. fi
  129. AM_CONDITIONAL([HAS_ANT_S1], [test x$ants1 = xyes])
  130. ants2="no"
  131. AC_ARG_ENABLE([ants2],
  132. [AC_HELP_STRING([--enable-ants2],[Compile support for Antminer S2 Bitmain STANDALONE(default disabled)])],
  133. [ants2=$enableval]
  134. )
  135. if test "x$ants2" = xyes; then
  136. AC_DEFINE([USE_ANT_S2], [1], [Defined to 1 if Antminer S2 Bitmain support is wanted])
  137. drivercount=x$drivercount
  138. standalone="yes"
  139. fi
  140. AM_CONDITIONAL([HAS_ANT_S2], [test x$ants2 = xyes])
  141. ants3="no"
  142. AC_ARG_ENABLE([ants3],
  143. [AC_HELP_STRING([--enable-ants3],[Compile support for Antminer S3 Bitmain STANDALONE(default disabled)])],
  144. [ants3=$enableval]
  145. )
  146. if test "x$ants3" = xyes; then
  147. AC_DEFINE([USE_ANT_S3], [1], [Defined to 1 if Antminer S3 Bitmain support is wanted])
  148. drivercount=x$drivercount
  149. standalone="yes"
  150. fi
  151. AM_CONDITIONAL([HAS_ANT_S3], [test x$ants3 = xyes])
  152. avalon="no"
  153. AC_ARG_ENABLE([avalon],
  154. [AC_HELP_STRING([--enable-avalon],[Compile support for Avalon (default disabled)])],
  155. [avalon=$enableval]
  156. )
  157. if test "x$avalon" = xyes; then
  158. AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
  159. drivercount=x$drivercount
  160. fi
  161. AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
  162. avalon2="no"
  163. AC_ARG_ENABLE([avalon2],
  164. [AC_HELP_STRING([--enable-avalon2],[Compile support for Avalon2 (default disabled)])],
  165. [avalon2=$enableval]
  166. )
  167. if test "x$avalon2" = xyes; then
  168. AC_DEFINE([USE_AVALON2], [1], [Defined to 1 if Avalon2 support is wanted])
  169. drivercount=x$drivercount
  170. fi
  171. AM_CONDITIONAL([HAS_AVALON2], [test x$avalon2 = xyes])
  172. avalon4="no"
  173. AC_ARG_ENABLE([avalon4],
  174. [AC_HELP_STRING([--enable-avalon4],[Compile support for Avalon4 (default disabled)])],
  175. [avalon4=$enableval]
  176. )
  177. if test "x$avalon4" = xyes; then
  178. AC_DEFINE([USE_AVALON4], [1], [Defined to 1 if Avalon4 support is wanted])
  179. fi
  180. AM_CONDITIONAL([HAS_AVALON4], [test x$avalon4 = xyes])
  181. avalon7="no"
  182. AC_ARG_ENABLE([avalon7],
  183. [AC_HELP_STRING([--enable-avalon7],[Compile support for Avalon7 (default disabled)])],
  184. [avalon7=$enableval]
  185. )
  186. if test "x$avalon7" = xyes; then
  187. AC_DEFINE([USE_AVALON7], [1], [Defined to 1 if Avalon7 support is wanted])
  188. fi
  189. AM_CONDITIONAL([HAS_AVALON7], [test x$avalon7 = xyes])
  190. avalon8="no"
  191. AC_ARG_ENABLE([avalon8],
  192. [AC_HELP_STRING([--enable-avalon8],[Compile support for Avalon8 (default disabled)])],
  193. [avalon8=$enableval]
  194. )
  195. if test "x$avalon8" = xyes; then
  196. AC_DEFINE([USE_AVALON8], [1], [Defined to 1 if Avalon8 support is wanted])
  197. fi
  198. AM_CONDITIONAL([HAS_AVALON8], [test x$avalon8 = xyes])
  199. avalon_miner="no"
  200. AC_ARG_ENABLE([avalon_miner],
  201. [AC_HELP_STRING([--enable-avalon-miner],[Compile support for Avalon miner(default disabled)])],
  202. [avalon_miner=$enableval]
  203. )
  204. if test "x$avalon_miner" = xyes; then
  205. AC_DEFINE([USE_AVALON_MINER], [1], [Defined to 1 if Avalon miner support is wanted])
  206. fi
  207. AM_CONDITIONAL([HAS_AVALON_MINER], [test x$avalon_miner = xyes])
  208. bab="no"
  209. AC_ARG_ENABLE([bab],
  210. [AC_HELP_STRING([--enable-bab],[Compile support for BlackArrow Bitfury STANDALONE(default disabled)])],
  211. [bab=$enableval]
  212. )
  213. if test "x$bab" = xyes; then
  214. AC_DEFINE([USE_BAB], [1], [Defined to 1 if BlackArrow Bitfury support is wanted])
  215. drivercount=x$drivercount
  216. standalone="yes"
  217. fi
  218. AM_CONDITIONAL([HAS_BAB], [test x$bab = xyes])
  219. bflsc="no"
  220. AC_ARG_ENABLE([bflsc],
  221. [AC_HELP_STRING([--enable-bflsc],[Compile support for BFL ASICs (default disabled)])],
  222. [bflsc=$enableval]
  223. )
  224. if test "x$bflsc" = xyes; then
  225. AC_DEFINE([USE_BFLSC], [1], [Defined to 1 if BFL ASIC support is wanted])
  226. drivercount=x$drivercount
  227. fi
  228. AM_CONDITIONAL([HAS_BFLSC], [test x$bflsc = xyes])
  229. bitforce="no"
  230. AC_ARG_ENABLE([bitforce],
  231. [AC_HELP_STRING([--enable-bitforce],[Compile support for BitForce FPGAs (default disabled)])],
  232. [bitforce=$enableval]
  233. )
  234. if test "x$bitforce" = xyes; then
  235. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  236. drivercount=x$drivercount
  237. fi
  238. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  239. bitfury="no"
  240. AC_ARG_ENABLE([bitfury],
  241. [AC_HELP_STRING([--enable-bitfury],[Compile support for BitFury ASICs (default disabled)])],
  242. [bitfury=$enableval]
  243. )
  244. if test "x$bitfury" = xyes; then
  245. AC_DEFINE([USE_BITFURY], [1], [Defined to 1 if BitFury ASIC support is wanted])
  246. drivercount=x$drivercount
  247. fi
  248. AM_CONDITIONAL([HAS_BITFURY], [test x$bitfury = xyes])
  249. bitfury16="no"
  250. AC_ARG_ENABLE([bitfury16],
  251. [AC_HELP_STRING([--enable-bitfury16],[Compile support for BitFury 16nm ASICs STANDALONE(default disabled)])],
  252. [bitfury16=$enableval]
  253. )
  254. if test "x$bitfury16" = xyes; then
  255. AC_DEFINE([USE_BITFURY16], [1], [Defined to 1 if BitFury 16nm ASIC support is wanted])
  256. drivercount=x$drivercount
  257. standalone="yes"
  258. fi
  259. AM_CONDITIONAL([HAS_BITFURY16], [test x$bitfury16 = xyes])
  260. bitmain_soc="no"
  261. bitmain_R4="no"
  262. bitmain_S9="no"
  263. bitmain_T9="no"
  264. bitmain_T9P="no"
  265. AC_ARG_ENABLE([bitmain_soc],
  266. [AC_HELP_STRING([--enable-bitmain_soc],[Compile support for Bitmain ASICs STANDALONE(default disabled)])],
  267. [bitmain_soc=$enableval]
  268. )
  269. AC_ARG_ENABLE([bitmain_R4],
  270. [AC_HELP_STRING([--enable-bitmain_R4],[Compile support for Bitmain R4])],
  271. [bitmain_R4=$enableval]
  272. )
  273. AC_ARG_ENABLE([bitmain_S9],
  274. [AC_HELP_STRING([--enable-bitmain_S9],[Compile support for Bitmain S9])],
  275. [bitmain_S9=$enableval]
  276. )
  277. AC_ARG_ENABLE([bitmain_T9],
  278. [AC_HELP_STRING([--enable-bitmain_T9],[Compile support for Bitmain T9])],
  279. [bitmain_T9=$enableval]
  280. )
  281. AC_ARG_ENABLE([bitmain_T9P],
  282. [AC_HELP_STRING([--enable-bitmain_T9P],[Compile support for Bitmain T9+])],
  283. [bitmain_T9P=$enableval]
  284. )
  285. if test "x$bitmain_soc" = xyes; then
  286. AC_DEFINE([USE_BITMAIN_SOC], [1], [Defined to 1 if Bitmain ASICs support is wanted])
  287. if test "x$bitmain_R4" = xyes; then
  288. AC_DEFINE([R4], [1], [Defined to 1 for R4])
  289. fi
  290. if test "x$bitmain_S9" = xyes; then
  291. AC_DEFINE([S9_63], [1], [Defined to 1 for S9])
  292. fi
  293. if test "x$bitmain_T9" = xyes; then
  294. AC_DEFINE([S9_PLUS], [1], [Defined to 1 for T9])
  295. fi
  296. if test "x$bitmain_T9P" = xyes; then
  297. AC_DEFINE([T9_18], [1], [Defined to 1 for T9+])
  298. fi
  299. if test "x$bitmain_R4$bitmain_S9$bitmain_T9$bitmain_T9P" = xnononono; then
  300. AC_DEFINE([S9_63], [1], [Defined to 1 for default])
  301. fi
  302. drivercount=x$drivercount
  303. standalone="yes"
  304. fi
  305. AM_CONDITIONAL([HAS_BITMAIN_SOC], [test x$bitmain_soc = xyes])
  306. bitmine_A1="no"
  307. AC_ARG_ENABLE([bitmine_A1],
  308. [AC_HELP_STRING([--enable-bitmine_A1],[Compile support for Bitmine.ch A1 ASICs STANDALONE(default disabled)])],
  309. [bitmine_A1=$enableval]
  310. )
  311. if test "x$bitmine_A1" = xyes; then
  312. AC_DEFINE([USE_BITMINE_A1], [1], [Defined to 1 if Bitmine A1 support is wanted])
  313. drivercount=x$drivercount
  314. standalone="yes"
  315. fi
  316. AM_CONDITIONAL([HAS_BITMINE_A1], [test x$bitmine_A1 = xyes])
  317. blockerupter="no"
  318. AC_ARG_ENABLE([blockerupter],
  319. [AC_HELP_STRING([--enable-blockerupter],[Compile support for BlockErupter BROKEN DRIVER (default disabled)])],
  320. [blockerupter=$enableval]
  321. )
  322. if test "x$blockerupter" = xyes; then
  323. AC_DEFINE([USE_BLOCKERUPTER], [1], [Defined to 1 if BlockErupter support is wanted])
  324. drivercount=x$drivercount
  325. fi
  326. AM_CONDITIONAL([HAS_BLOCKERUPTER], [test x$blockerupter = xyes])
  327. gekko="no"
  328. AC_ARG_ENABLE([gekko],
  329. [AC_HELP_STRING([--enable-gekko],[Compile support for GekkoScience (default disabled)])],
  330. [gekko=$enableval]
  331. )
  332. if test "x$gekko" = xyes; then
  333. AC_DEFINE([USE_GEKKO], [1], [Defined to 1 if GekkoScience support is wanted])
  334. AC_DEFINE([USE_VMASK], [1], [Defined to 1 if version mask rolling is wanted])
  335. drivercount=x$drivercount
  336. fi
  337. AM_CONDITIONAL([HAS_GEKKO], [test x$gekko = xyes])
  338. cointerra="no"
  339. AC_ARG_ENABLE([cointerra],
  340. [AC_HELP_STRING([--enable-cointerra],[Compile support for Cointerra ASICs (default disabled)])],
  341. [cointerra=$enableval]
  342. )
  343. if test "x$cointerra" = xyes; then
  344. AC_DEFINE([USE_COINTERRA], [1], [Defined to 1 if Cointerra support is wanted])
  345. drivercount=x$drivercount
  346. fi
  347. AM_CONDITIONAL([HAS_COINTERRA], [test x$cointerra = xyes])
  348. dragonmint_t1="no"
  349. AC_ARG_ENABLE([dragonmint_t1],
  350. [AC_HELP_STRING([--enable-dragonmint_t1],[Compile support for Dragonmint T1 ASICs STANDALONE(default disabled)])],
  351. [dragonmint_t1=$enableval]
  352. )
  353. if test "x$dragonmint_t1" = xyes; then
  354. AC_DEFINE([USE_DRAGONMINT_T1], [1], [Defined to 1 if Dragonmint T1 support is wanted])
  355. AC_DEFINE([USE_VMASK], [1], [Defined to 1 if version mask rolling is wanted])
  356. drivercount=x$drivercount
  357. standalone="yes"
  358. fi
  359. AM_CONDITIONAL([HAS_DRAGONMINT_T1], [test x$dragonmint_t1 = xyes])
  360. drillbit="no"
  361. AC_ARG_ENABLE([drillbit],
  362. [AC_HELP_STRING([--enable-drillbit],[Compile support for Drillbit BitFury ASICs (default disabled)])],
  363. [drillbit=$enableval]
  364. )
  365. if test "x$drillbit" = xyes; then
  366. AC_DEFINE([USE_DRILLBIT], [1], [Defined to 1 if Drillbit BitFury support is wanted])
  367. drivercount=x$drivercount
  368. fi
  369. AM_CONDITIONAL([HAS_DRILLBIT], [test x$drillbit = xyes])
  370. hashfast="no"
  371. AC_ARG_ENABLE([hashfast],
  372. [AC_HELP_STRING([--enable-hashfast],[Compile support for Hashfast (default disabled)])],
  373. [hashfast=$enableval]
  374. )
  375. if test "x$hashfast" = xyes; then
  376. AC_DEFINE([USE_HASHFAST], [1], [Defined to 1 if Hashfast support is wanted])
  377. drivercount=x$drivercount
  378. fi
  379. AM_CONDITIONAL([HAS_HASHFAST], [test x$hashfast = xyes])
  380. hashratio="no"
  381. AC_ARG_ENABLE([hashratio],
  382. [AC_HELP_STRING([--enable-hashratio],[Compile support for Hashratio (default disabled)])],
  383. [hashratio=$enableval]
  384. )
  385. if test "x$hashratio" = xyes; then
  386. AC_DEFINE([USE_HASHRATIO], [1], [Defined to 1 if Hashratiosupport is wanted])
  387. drivercount=x$drivercount
  388. fi
  389. AM_CONDITIONAL([HAS_HASHRATIO], [test x$hashratio = xyes])
  390. icarus="no"
  391. AC_ARG_ENABLE([icarus],
  392. [AC_HELP_STRING([--enable-icarus],[Compile support for Icarus (default disabled)])],
  393. [icarus=$enableval]
  394. )
  395. if test "x$icarus" = xyes; then
  396. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  397. drivercount=x$drivercount
  398. fi
  399. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  400. klondike="no"
  401. AC_ARG_ENABLE([klondike],
  402. [AC_HELP_STRING([--enable-klondike],[Compile support for Klondike (default disabled)])],
  403. [klondike=$enableval]
  404. )
  405. if test "x$klondike" = xyes; then
  406. AC_DEFINE([USE_KLONDIKE], [1], [Defined to 1 if Klondike support is wanted])
  407. drivercount=x$drivercount
  408. fi
  409. AM_CONDITIONAL([HAS_KLONDIKE], [test x$klondike = xyes])
  410. knc="no"
  411. AC_ARG_ENABLE([knc],
  412. [AC_HELP_STRING([--enable-knc],[Compile support for KnC miners STANDALONE(default disabled)])],
  413. [knc=$enableval]
  414. )
  415. if test "x$knc" = xyes; then
  416. AC_DEFINE([USE_KNC], [1], [Defined to 1 if KnC miner support is wanted])
  417. drivercount=x$drivercount
  418. standalone="yes"
  419. fi
  420. AM_CONDITIONAL([HAS_KNC], [test x$knc = xyes])
  421. minion="no"
  422. AC_ARG_ENABLE([minion],
  423. [AC_HELP_STRING([--enable-minion],[Compile support for Minion BlackArrow ASIC STANDALONE(default disabled)])],
  424. [minion=$enableval]
  425. )
  426. if test "x$minion" = xyes; then
  427. AC_DEFINE([USE_MINION], [1], [Defined to 1 if Minion BlackArrow ASIC support is wanted])
  428. drivercount=x$drivercount
  429. standalone="yes"
  430. fi
  431. AM_CONDITIONAL([HAS_MINION], [test x$minion = xyes])
  432. modminer="no"
  433. AC_ARG_ENABLE([modminer],
  434. [AC_HELP_STRING([--enable-modminer],[Compile support for ModMiner FPGAs(default disabled)])],
  435. [modminer=$enableval]
  436. )
  437. if test "x$modminer" = xyes; then
  438. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  439. drivercount=x$drivercount
  440. fi
  441. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  442. sp10="no"
  443. AC_ARG_ENABLE([sp10],
  444. [AC_HELP_STRING([--enable-sp10],[Compile support for Spondoolies SP10 STANDALONE(default disabled)])],
  445. [sp10=$enableval]
  446. )
  447. if test "x$sp10" = xyes; then
  448. AC_DEFINE([USE_SP10], [1], [Defined to 1 if Spondoolies SP10 support is wanted])
  449. drivercount=x$drivercount
  450. standalone="yes"
  451. fi
  452. AM_CONDITIONAL([HAS_SP10], [test x$sp10 = xyes])
  453. sp30="no"
  454. AC_ARG_ENABLE([sp30],
  455. [AC_HELP_STRING([--enable-sp30],[Compile support for Spondoolies SP30 STANDALONE(default disabled)])],
  456. [sp30=$enableval]
  457. )
  458. if test "x$sp30" = xyes; then
  459. AC_DEFINE([USE_SP30], [1], [Defined to 1 if SP30 support is wanted])
  460. drivercount=x$drivercount
  461. standalone="yes"
  462. fi
  463. AM_CONDITIONAL([HAS_SP30], [test x$sp30 = xyes])
  464. forcecombo="no"
  465. AC_ARG_ENABLE([forcecombo],
  466. [AC_HELP_STRING([--enable-forcecombo],[Allow combinations of drivers not intended to be built together(default disabled)])],
  467. [forcecombo=$enableval]
  468. )
  469. if test "x$forcecombo" = xyes; then
  470. standalone="no"
  471. fi
  472. curses="auto"
  473. AC_ARG_WITH([curses],
  474. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  475. [curses=$withval]
  476. )
  477. if test "x$curses" = "xno"; then
  478. cursesmsg='User specified --without-curses. TUI support DISABLED'
  479. else
  480. AC_SEARCH_LIBS(addstr, pdcurses ncurses pdcurses, [
  481. curses=yes
  482. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  483. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  484. ], [
  485. if test "x$curses" = "xyes"; then
  486. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  487. else
  488. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  489. curses=no
  490. cursesmsg='NOT FOUND. TUI support DISABLED'
  491. fi
  492. ])
  493. fi
  494. #Add a new device to this list if it needs libusb, along with a no on the end.
  495. if test x$avalon$avalon2$avalon4$avalon7$avalon8$avalon_miner$bitforce$bitfury$blockerupter$gekko$modminer$bflsc$icarus$hashfast$hashratio$klondike$drillbit$cointerra$ants1$ants3 != xnononononononononononononononononononono; then
  496. want_usbutils=true
  497. else
  498. want_usbutils=false
  499. fi
  500. if test x$bitfury != xno; then
  501. want_libbitfury=true
  502. else
  503. want_libbitfury=false
  504. fi
  505. if test x$avalon2$avalon4$avalon7$$avalon8$avalon_miner$gekko$hashratio != xnonononononono; then
  506. want_crc16=true
  507. else
  508. want_crc16=false
  509. fi
  510. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$modminer != xno])
  511. AM_CONDITIONAL([WANT_USBUTILS], [test x$want_usbutils != xfalse])
  512. AM_CONDITIONAL([NEED_LIBZ], [test x$bitmain_soc != xno])
  513. AM_CONDITIONAL([WANT_LIBBITFURY], [test x$want_libbitfury != xfalse])
  514. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  515. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  516. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  517. AM_CONDITIONAL([WANT_CRC16], [test x$want_crc16 != xfalse])
  518. AM_CONDITIONAL([NEED_I2C_CONTEXT], [test x$avalon4$avalon7$avalon8 != xnonono])
  519. if test "x$want_usbutils" != xfalse; then
  520. dlibusb="no"
  521. AC_DEFINE([USE_USBUTILS], [1], [Defined to 1 if usbutils support required])
  522. AC_ARG_WITH([system-libusb],
  523. [AC_HELP_STRING([--with-system-libusb],[Not recommended! Compile against dynamic system libusb. (Default use included static libusb)])],
  524. [dlibusb=$withval]
  525. )
  526. if test "x$dlibusb" != xno; then
  527. case $target in
  528. *-*-freebsd*)
  529. LIBUSB_LIBS="-lusb"
  530. LIBUSB_CFLAGS=""
  531. AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
  532. ;;
  533. *)
  534. PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
  535. ;;
  536. esac
  537. else
  538. AC_CONFIG_SUBDIRS([compat/libusb-1.0])
  539. LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"
  540. if test "x$have_linux" = "xtrue"; then
  541. AC_ARG_ENABLE([udev],
  542. [AC_HELP_STRING([--disable-udev],[Disable building libusb with udev])],
  543. [udev=$enableval]
  544. )
  545. if test "x$udev" != xno; then
  546. LIBUSB_LIBS+=" -ludev"
  547. fi
  548. fi
  549. if test "x$have_darwin" = "xtrue"; then
  550. LIBUSB_LIBS+=" -lobjc"
  551. LDFLAGS+=" -framework CoreFoundation -framework IOKit"
  552. fi
  553. fi
  554. else
  555. LIBUSB_LIBS=""
  556. fi
  557. AM_CONDITIONAL([WANT_STATIC_LIBUSB], [test x$dlibusb = xno])
  558. djansson="no"
  559. AC_ARG_WITH([system-jansson],
  560. [AC_HELP_STRING([--with-system-jansson],[Not Recommended! Compile against dynamic system jansson. (Default use included static jansson)])],
  561. [djansson=$withval]
  562. )
  563. if test "x$djansson" != xno; then
  564. case $target in
  565. *-*-freebsd*)
  566. JANSSON_LIBS="-ljansson"
  567. JANSSON_CFLAGS=""
  568. AC_DEFINE(HAVE_JANSSON, 1, [Define if you have jansson >= 2.6])
  569. ;;
  570. *)
  571. PKG_CHECK_MODULES(JANSSON, jansson >= 2.6, [AC_DEFINE(HAVE_JANSSON, 1, [Define if you have jansson >= 2.6])], [AC_MSG_ERROR([Could not find jansson library - please install jansson >= 2.6])])
  572. ;;
  573. esac
  574. else
  575. AC_CONFIG_SUBDIRS([compat/jansson-2.9])
  576. JANSSON_LIBS="compat/jansson-2.9/src/.libs/libjansson.a"
  577. fi
  578. AM_CONDITIONAL([WANT_STATIC_JANSSON], [test x$djansson = xno])
  579. AC_CHECK_HEADERS([uthash.h])
  580. PKG_PROG_PKG_CONFIG()
  581. if test "x$have_cgminer_sdk" = "xtrue"; then
  582. if test "x$have_x86_64" = xtrue; then
  583. ARCH_DIR=x86_64
  584. else
  585. ARCH_DIR=x86
  586. fi
  587. PKG_CONFIG="${PKG_CONFIG:-pkg-config} --define-variable=arch=$ARCH_DIR --define-variable=target=$target --define-variable=cgminersdkdir=$CGMINER_SDK"
  588. PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
  589. fi
  590. AC_SUBST(LIBUSB_LIBS)
  591. AC_SUBST(LIBUSB_CFLAGS)
  592. AC_ARG_ENABLE([libcurl],
  593. [AC_HELP_STRING([--disable-libcurl],[Disable building with libcurl for GBT support])],
  594. [libcurl=$enableval]
  595. )
  596. static_curl="no"
  597. if test "x$libcurl" != xno; then
  598. if test "x$have_win32" != xtrue; then
  599. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], [AC_DEFINE([CURL_HAS_KEEPALIVE], [1], [Defined if version of curl supports keepalive.])],
  600. [PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])])
  601. else
  602. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.25.0])])
  603. AC_DEFINE([CURL_HAS_KEEPALIVE], [1])
  604. static_curl="yes"
  605. fi
  606. AC_DEFINE([HAVE_LIBCURL], [1], [Defined to 1 if libcurl support built in])
  607. else
  608. LIBCURL_LIBS=""
  609. fi
  610. AC_SUBST(LIBCURL_LIBS)
  611. AM_CONDITIONAL([STATIC_CURL], [test x$static_curl = xyes])
  612. libsystemd="no"
  613. AC_ARG_ENABLE([libsystemd],
  614. [AC_HELP_STRING([--enable-libsystemd],[Enable building with libsystemd for watchdog and status notification support])],
  615. [libsystemd=$enableval]
  616. )
  617. if test "x$libsystemd" != xno; then
  618. if test "x$have_linux" != xtrue; then
  619. AC_MSG_ERROR([libsystemd is only supported on Linux platforms])
  620. fi
  621. PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd, , AC_MSG_ERROR(Could not find libsystemd dev))
  622. AC_DEFINE([USE_LIBSYSTEMD], [1], [Defined to 1 if libsystemd support is wanted])
  623. else
  624. LIBSYSTEMD_LIBS=""
  625. fi
  626. #check execv signature
  627. AC_COMPILE_IFELSE([AC_LANG_SOURCE([
  628. #include <process.h>
  629. int execv(const char*, const char*const*);
  630. ])],
  631. AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]),
  632. AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]))
  633. dnl CCAN wants to know a lot of vars.
  634. # All the configuration checks. Regrettably, the __attribute__ checks will
  635. # give false positives on old GCCs, since they just cause warnings. But that's
  636. # fairly harmless.
  637. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  638. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  639. [Define if __attribute__((cold))]))
  640. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  641. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  642. [Define if __attribute__((const))]))
  643. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  644. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  645. [Define if __attribute__((noreturn))]))
  646. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  647. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  648. [Define if __attribute__((format(__printf__)))]))
  649. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  650. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  651. [Define if __attribute__((unused))]))
  652. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  653. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  654. [Define if __attribute__((used))]))
  655. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  656. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  657. [Define if have __builtin_constant_p]))
  658. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  659. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  660. [Define if have __builtin_types_compatible_p]))
  661. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  662. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  663. [Define if __attribute__((warn_unused_result))]))
  664. if test "x$prefix" = xNONE; then
  665. prefix=/usr/local
  666. fi
  667. AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install])
  668. AC_SUBST(JANSSON_LIBS)
  669. AC_SUBST(LIBZ_LIBS)
  670. AC_SUBST(PTHREAD_FLAGS)
  671. AC_SUBST(DLOPEN_FLAGS)
  672. AC_SUBST(PTHREAD_LIBS)
  673. AC_SUBST(NCURSES_LIBS)
  674. AC_SUBST(PDCURSES_LIBS)
  675. AC_SUBST(WS2_LIBS)
  676. AC_SUBST(MM_LIBS)
  677. AC_SUBST(MATH_LIBS)
  678. AC_SUBST(RT_LIBS)
  679. AC_CONFIG_FILES([
  680. Makefile
  681. compat/Makefile
  682. ccan/Makefile
  683. lib/Makefile
  684. ])
  685. AC_OUTPUT
  686. echo
  687. echo
  688. echo
  689. echo "------------------------------------------------------------------------"
  690. echo "$PACKAGE $VERSION"
  691. echo "------------------------------------------------------------------------"
  692. echo
  693. echo
  694. echo "Configuration Options Summary:"
  695. echo
  696. if test "x$libcurl" != xno; then
  697. echo " libcurl(GBT).: Enabled: $LIBCURL_LIBS"
  698. else
  699. echo " libcurl(GBT).: Disabled"
  700. fi
  701. if test "x$libsystemd" != xno; then
  702. echo " libsystemd...........: Enabled: $LIBSYSTEMD_LIBS"
  703. else
  704. echo " libsystemd...........: Disabled"
  705. fi
  706. echo " curses.TUI...........: $cursesmsg"
  707. echo
  708. if test "x$dragonmint_t1" = xyes; then
  709. echo " DragonMint.T1.Halong.: Enabled"
  710. else
  711. echo " DragonMint.T1.Halong.: Disabled"
  712. fi
  713. if test "x$ants1" = xyes; then
  714. echo " Antminer.S1.Bitmain..: Enabled"
  715. else
  716. echo " Antminer.S1.Bitmain..: Disabled"
  717. fi
  718. if test "x$ants2" = xyes; then
  719. echo " Antminer.S2.Bitmain..: Enabled"
  720. else
  721. echo " Antminer.S2.Bitmain..: Disabled"
  722. fi
  723. if test "x$ants3" = xyes; then
  724. echo " Antminer.S3.Bitmain..: Enabled"
  725. else
  726. echo " Antminer.S3.Bitmain..: Disabled"
  727. fi
  728. if test "x$avalon" = xyes; then
  729. echo " Avalon.ASICs.........: Enabled"
  730. else
  731. echo " Avalon.ASICs.........: Disabled"
  732. fi
  733. if test "x$avalon2" = xyes; then
  734. echo " Avalon2.ASICs........: Enabled"
  735. else
  736. echo " Avalon2.ASICs........: Disabled"
  737. fi
  738. if test "x$avalon4" = xyes; then
  739. echo " Avalon4.ASICs........: Enabled"
  740. else
  741. echo " Avalon4.ASICs........: Disabled"
  742. fi
  743. if test "x$avalon7" = xyes; then
  744. echo " Avalon7.ASICs........: Enabled"
  745. else
  746. echo " Avalon7.ASICs........: Disabled"
  747. fi
  748. if test "x$avalon8" = xyes; then
  749. echo " Avalon8.ASICs........: Enabled"
  750. else
  751. echo " Avalon8.ASICs........: Disabled"
  752. fi
  753. if test "x$avalon_miner" = xyes; then
  754. echo " Avalon miner.ASICs...: Enabled"
  755. else
  756. echo " Avalon miner.ASICs...: Disabled"
  757. fi
  758. if test "x$minion" = xyes; then
  759. echo " BlackArrowMinion.ASIC: Enabled"
  760. else
  761. echo " BlackArrowMinion.ASIC: Disabled"
  762. fi
  763. if test "x$bab" = xyes; then
  764. echo " BlackArrow.ASICs.....: Enabled"
  765. else
  766. echo " BlackArrow.ASICs.....: Disabled"
  767. fi
  768. if test "x$bflsc" = xyes; then
  769. echo " BFL.ASICs............: Enabled"
  770. else
  771. echo " BFL.ASICs............: Disabled"
  772. fi
  773. if test "x$bitforce" = xyes; then
  774. echo " BitForce.FPGAs.......: Enabled"
  775. else
  776. echo " BitForce.FPGAs.......: Disabled"
  777. fi
  778. if test "x$bitfury" = xyes; then
  779. echo " BitFury.ASICs........: Enabled"
  780. else
  781. echo " BitFury.ASICs........: Disabled"
  782. fi
  783. if test "x$bitfury16" = xyes; then
  784. echo " BitFury16.ASICs......: Enabled"
  785. else
  786. echo " BitFury16.ASICs......: Disabled"
  787. fi
  788. if test "x$bitmain_soc" = xyes; then
  789. echo " Bitmain.ASICs........: Enabled"
  790. else
  791. echo " Bitmain.ASICs........: Disabled"
  792. fi
  793. if test "x$blockerupter" = xyes; then
  794. echo " BlockErupter.ASICs...: Enabled"
  795. else
  796. echo " BlockErupter.ASICs...: Disabled"
  797. fi
  798. if test "x$gekko" = xyes; then
  799. echo " GekkoScience.ASICs...: Enabled"
  800. else
  801. echo " GekkoScience.ASICs...: Disabled"
  802. fi
  803. if test "x$cointerra" = xyes; then
  804. echo " Cointerra.ASICs......: Enabled"
  805. else
  806. echo " Cointerra.ASICs......: Disabled"
  807. fi
  808. if test "x$sp10" = xyes; then
  809. echo " Spond-sp10.ASICs.....: Enabled"
  810. else
  811. echo " Spond-sp10.ASICs.....: Disabled"
  812. fi
  813. if test "x$sp30" = xyes; then
  814. echo " Spond-sp30.ASICs.....: Enabled"
  815. else
  816. echo " Spond-sp30.ASICs.....: Disabled"
  817. fi
  818. if test "x$bitmine_A1" = xyes; then
  819. echo " Bitmine-A1.ASICs.....: Enabled"
  820. else
  821. echo " Bitmine-A1.ASICs.....: Disabled"
  822. fi
  823. if test "x$dragonmint_t1" = xyes; then
  824. echo " Dragonmint.T1.ASICs..: Enabled"
  825. else
  826. echo " Dragonmint.T1.ASICs..: Disabled"
  827. fi
  828. if test "x$drillbit" = xyes; then
  829. echo " Drillbit.BitFury.....: Enabled"
  830. else
  831. echo " Drillbit.BitFury.....: Disabled"
  832. fi
  833. if test "x$hashfast" = xyes; then
  834. echo " Hashfast.ASICs.......: Enabled"
  835. else
  836. echo " Hashfast.ASICs.......: Disabled"
  837. fi
  838. if test "x$hashratio" = xyes; then
  839. echo " Hashratio.ASICs......: Enabled"
  840. else
  841. echo " Hashratio.ASICs......: Disabled"
  842. fi
  843. if test "x$icarus" = xyes; then
  844. echo " Icarus.ASICs/FPGAs...: Enabled"
  845. else
  846. echo " Icarus.ASICs/FPGAs...: Disabled"
  847. fi
  848. if test "x$klondike" = xyes; then
  849. echo " Klondike.ASICs.......: Enabled"
  850. else
  851. echo " Klondike.ASICs.......: Disabled"
  852. fi
  853. if test "x$knc" = xyes; then
  854. echo " KnC.ASICs............: Enabled"
  855. else
  856. echo " KnC.ASICs............: Disabled"
  857. fi
  858. if test "x$modminer" = xyes; then
  859. echo " ModMiner.FPGAs.......: Enabled"
  860. else
  861. echo " ModMiner.FPGAs.......: Disabled"
  862. fi
  863. #Add any new device to this, along with a no on the end of the test
  864. if test "x$avalon$avalon2$avalon4$avalon7$avalon8$avalon_miner$bab$bflsc$bitforce$bitfury$bitfury16$bitmain_soc$gekko$blockerupter$hashfast$hashratio$icarus$klondike$knc$modminer$drillbit$minion$cointerra$bitmine_A1$ants1$ants2$ants3$sp10$sp30$dragonmint_t1" = xnonononononononnoononononononononononononononononononnoonono; then
  865. echo
  866. AC_MSG_ERROR([No mining devices configured in])
  867. echo
  868. fi
  869. if test "x$standalone" = xyes; then
  870. if test $drivercount != x; then
  871. echo
  872. AC_MSG_ERROR([You have configured more than one driver in with a driver that is designed to be standalone only (see ./configure --help)])
  873. echo
  874. fi
  875. fi
  876. echo
  877. echo "Compilation............: make (or gmake)"
  878. echo " CPPFLAGS.............: $CPPFLAGS"
  879. echo " CFLAGS...............: $CFLAGS"
  880. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  881. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $LIBSYSTEMD_LIBS $JANSSON_LIBS $LIBZ_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $LIBUSB_LIBS $RT_LIBS"
  882. echo
  883. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  884. echo " prefix...............: $prefix"
  885. echo
  886. if test "x$want_usbutils$dlibusb" = xyesyes; then
  887. echo "*** SYSTEM LIBUSB BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED LIBUSB ***"
  888. echo
  889. fi
  890. if test "x$djansson" = xyes; then
  891. echo "*** SYSTEM JANSSON BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED JANSSON ***"
  892. echo
  893. fi