configure.ac 33 KB

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