configure.ac 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. dnl * Copyright 2012-2013 Luke Dashjr
  2. dnl * Copyright 2011-2013 Con Kolivas
  3. dnl * Copyright 2010-2011 Jeff Garzik
  4. dnl * Copyright 2012 Xiangfu
  5. dnl * Copyright 2011 Rusty Russell
  6. dnl * Copyright 2011 Mark Crichton
  7. dnl *
  8. dnl * This program is free software; you can redistribute it and/or modify it
  9. dnl * under the terms of the GNU General Public License as published by the Free
  10. dnl * Software Foundation; either version 3 of the License, or (at your option)
  11. dnl * any later version. See COPYING for more details.
  12. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  13. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  14. m4_define([v_maj], [3])
  15. m4_define([v_min], [1])
  16. m4_define([v_mic], [4])
  17. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  18. m4_define([v_ver], [v_maj.v_min.v_mic])
  19. m4_define([lt_rev], m4_eval(v_maj + v_min))
  20. m4_define([lt_cur], v_mic)
  21. m4_define([lt_age], v_min)
  22. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  23. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  24. AC_INIT([bfgminer], [v_ver], [luke-jr+bfgminer@utopios.org])
  25. AC_PREREQ([2.59c])
  26. AC_CANONICAL_SYSTEM
  27. AC_CONFIG_MACRO_DIR([m4])
  28. AC_CONFIG_SRCDIR([miner.c])
  29. AC_CONFIG_HEADERS([config.h])
  30. AM_INIT_AUTOMAKE([foreign])
  31. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  32. AC_USE_SYSTEM_EXTENSIONS
  33. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  34. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  35. m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
  36. m4_ifdef([v_rel], , [m4_define([v_rel], [])])
  37. AC_DEFINE_UNQUOTED(CGMINER_MAJOR_VERSION, [v_maj], [Major version])
  38. AC_DEFINE_UNQUOTED(CGMINER_MINOR_VERSION, [v_min], [Minor version])
  39. AC_DEFINE_UNQUOTED(CGMINER_MINOR_SUBVERSION, [v_mic], [Micro version])
  40. version_info="lt_rev:lt_cur:lt_age"
  41. release_info="v_rel"
  42. AC_SUBST(version_info)
  43. AC_SUBST(release_info)
  44. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  45. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  46. VMAJ=v_maj
  47. AC_SUBST(VMAJ)
  48. AC_CANONICAL_BUILD
  49. AC_CANONICAL_HOST
  50. dnl Make sure anyone changing configure.ac/Makefile.am has a clue
  51. AM_MAINTAINER_MODE([enable])
  52. dnl Checks for programs
  53. AC_PROG_CC_C99
  54. gl_EARLY
  55. AC_PROG_GCC_TRADITIONAL
  56. AM_PROG_CC_C_O
  57. AC_PROG_RANLIB
  58. gl_INIT
  59. dnl Checks for header files.
  60. AC_HEADER_STDC
  61. AC_CHECK_HEADERS(syslog.h)
  62. AC_CHECK_HEADERS([sys/epoll.h])
  63. AC_CHECK_HEADERS([sys/prctl.h])
  64. AC_CHECK_HEADERS([sys/file.h])
  65. AC_FUNC_ALLOCA
  66. have_cygwin=false
  67. have_win32=false
  68. have_macho=false
  69. DLOPEN_FLAGS="-ldl"
  70. WS2_LIBS=""
  71. MM_LIBS=""
  72. MATH_LIBS="-lm"
  73. case $target in
  74. amd64-* | x86_64-*)
  75. have_x86_32=false
  76. have_x86_64=true
  77. bitness="64"
  78. ;;
  79. i386-* | i486-* | i586-* | i686-* | x86-*)
  80. have_x86_32=true
  81. have_x86_64=false
  82. bitness="32"
  83. ;;
  84. *)
  85. have_x86_32=false
  86. have_x86_64=false
  87. ;;
  88. esac
  89. case $target in
  90. *-*-mingw*)
  91. have_win32=true
  92. DLOPEN_FLAGS=""
  93. WS2_LIBS="-lws2_32"
  94. MM_LIBS="-lwinmm"
  95. AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  96. AC_DEFINE([FD_SETSIZE], [4096], [Maximum sockets before fd_set overflows])
  97. ;;
  98. *-*-cygwin*)
  99. have_cygwin=true
  100. ;;
  101. powerpc-*-darwin*)
  102. CFLAGS="$CFLAGS -faltivec"
  103. have_macho=true
  104. ;;
  105. *-*-darwin*)
  106. have_macho=true
  107. ;;
  108. esac
  109. m4_define([BFG_INCLUDE],
  110. if test "x$2" = "x"; then
  111. $1=''
  112. else
  113. $1="[#]include <$2>"
  114. fi
  115. )
  116. m4_define([BFG_PREPROC_IFELSE],
  117. BFG_INCLUDE([headerinclude], $2)
  118. AC_COMPILE_IFELSE([
  119. AC_LANG_PROGRAM([
  120. ${headerinclude}
  121. ], [
  122. #if !( $1 )
  123. #error "$1 false in preprocessor"
  124. #endif
  125. ])
  126. ],[$3],[$4])
  127. )
  128. AC_CHECK_DECL([HASH_ITER],[
  129. AC_CHECK_DECL([DL_FOREACH_SAFE],[
  130. true
  131. ],[
  132. AC_MSG_ERROR([Could not find DL_FOREACH_SAFE - install uthash-dev 1.9.2+])
  133. ],[
  134. #include <utlist.h>
  135. ])
  136. ],[
  137. AC_MSG_ERROR([Could not find HASH_ITER - please install uthash-dev 1.9.2+])
  138. ],[
  139. #include <uthash.h>
  140. ])
  141. cpumining="no"
  142. AC_ARG_ENABLE([cpumining],
  143. [AC_HELP_STRING([--enable-cpumining],[Build with CPU mining support (default disabled)])],
  144. [cpumining=$enableval]
  145. )
  146. if test "x$cpumining" = xyes; then
  147. AC_DEFINE_UNQUOTED([WANT_CPUMINE], [1], [Enable CPUMINING])
  148. fi
  149. AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
  150. opencl="yes"
  151. AC_ARG_ENABLE([opencl],
  152. [AC_HELP_STRING([--disable-opencl],[Build without support for OpenCL (default enabled)])],
  153. [opencl=$enableval]
  154. )
  155. if test "x$opencl" = xyes; then
  156. AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL support is wanted])
  157. else
  158. DLOPEN_FLAGS=""
  159. fi
  160. AM_CONDITIONAL([HAVE_OPENCL], [test x$opencl = xyes])
  161. m4_define([BFG_PTHREAD_FLAG_CHECK],
  162. AC_MSG_CHECKING([for $1])
  163. for cflag in ' -pthread' ''; do
  164. for lib in ' -lpthread' ' -lwinpthread' ''; do
  165. CFLAGS="${save_CFLAGS}${cflag}"
  166. LIBS="${save_LIBS}${lib}"
  167. AC_LINK_IFELSE([
  168. AC_LANG_PROGRAM([
  169. #include <pthread.h>
  170. ], [
  171. void *f = $1;
  172. ])
  173. ], [
  174. found_pthread=true
  175. PTHREAD_FLAGS="${cflag}"
  176. PTHREAD_LIBS="${lib}"
  177. if test "x${cflag}${lib}" = "x"; then
  178. AC_MSG_RESULT([yes])
  179. else
  180. AC_MSG_RESULT([with${cflag}${lib}])
  181. fi
  182. $2
  183. break 2
  184. ])
  185. done
  186. done
  187. if test "x${found_pthread}" = "xfalse"; then
  188. AC_MSG_RESULT([no])
  189. fi
  190. )
  191. save_CFLAGS="${CFLAGS}"
  192. save_LIBS="${LIBS}"
  193. found_pthread=false
  194. BFG_PTHREAD_FLAG_CHECK([pthread_cancel],[
  195. AC_DEFINE([HAVE_PTHREAD_CANCEL], [1], [Define if you have a native pthread_cancel])
  196. ])
  197. if test "x${found_pthread}" = "xfalse"; then
  198. BFG_PTHREAD_FLAG_CHECK([pthread_create])
  199. if test "x${found_pthread}" = "xfalse"; then
  200. AC_MSG_ERROR([Could not find pthread library - please install libpthread])
  201. fi
  202. fi
  203. # check for nanosleep here, since it is provided by winpthread
  204. AC_CHECK_FUNCS([nanosleep])
  205. CFLAGS="${save_CFLAGS}"
  206. LIBS="${save_LIBS}"
  207. PKG_CHECK_MODULES([JANSSON],[jansson],[
  208. true
  209. ],[
  210. AC_MSG_CHECKING([for jansson in system-default locations])
  211. LIBS="$LIBS -ljansson"
  212. AC_TRY_LINK([
  213. #include <jansson.h>
  214. ],[
  215. json_object();
  216. ],[
  217. AC_MSG_RESULT([found])
  218. JANSSON_LIBS=-ljansson
  219. ],[
  220. AC_MSG_RESULT([not found])
  221. AC_MSG_ERROR([Could not find jansson library])
  222. ])
  223. LIBS="${save_LIBS}"
  224. ])
  225. AC_SUBST(JANSSON_CFLAGS)
  226. AC_SUBST(JANSSON_LIBS)
  227. if test "x$opencl" = xyes; then
  228. adl="yes"
  229. AC_ARG_WITH([sensors],[Build with libsensors monitoring],[true],[with_sensors=auto])
  230. if test "x$opencl" != xyes; then
  231. with_sensors=no
  232. fi
  233. if test "x$with_sensors" != xno; then
  234. AC_MSG_CHECKING([for libsensors])
  235. save_LIBS="${LIBS}"
  236. LIBS="$LIBS -lsensors"
  237. AC_LINK_IFELSE([AC_LANG_PROGRAM([
  238. #include <stddef.h>
  239. #include <sensors/sensors.h>
  240. ],[
  241. const sensors_chip_name *cn;
  242. cn = sensors_get_detected_chips(NULL, NULL);
  243. ])],[
  244. with_sensors=yes
  245. sensors_LIBS="-lsensors"
  246. AC_DEFINE([HAVE_SENSORS], [1], [Defined if libsensors was found])
  247. AC_MSG_RESULT([yes])
  248. ],[
  249. with_sensors=no
  250. AC_MSG_RESULT([no])
  251. ])
  252. LIBS="$save_LIBS"
  253. fi
  254. AC_SUBST(sensors_LIBS)
  255. AC_ARG_ENABLE([adl],
  256. [AC_HELP_STRING([--disable-adl],[Build without ADL monitoring (default enabled)])],
  257. [adl=$enableval]
  258. )
  259. if test x$adl = xyes
  260. then
  261. AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
  262. fi
  263. else
  264. adl="no"
  265. fi
  266. AC_ARG_ENABLE([bitforce],
  267. [AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
  268. [bitforce=$enableval],
  269. [bitforce=yes]
  270. )
  271. if test "x$bitforce" = xyes; then
  272. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  273. fi
  274. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  275. AC_ARG_ENABLE([icarus],
  276. [AC_HELP_STRING([--disable-icarus],[Compile support for Icarus (default enabled)])],
  277. [icarus=$enableval],
  278. [icarus=yes]
  279. )
  280. if test "x$icarus" = xyes; then
  281. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  282. fi
  283. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  284. avalon="no"
  285. AC_ARG_ENABLE([avalon],
  286. [AC_HELP_STRING([--disable-avalon],[Compile support for Avalon (default enabled)])],
  287. [avalon=$enableval],
  288. [avalon=yes]
  289. )
  290. if test "x$avalon" = xyes; then
  291. AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
  292. fi
  293. AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
  294. httpsrv=auto
  295. AC_ARG_WITH([libmicrohttpd],
  296. [AC_HELP_STRING([--without-libmicrohttpd],[Compile support for libmicrohttpd getwork server (default enabled)])],
  297. [httpsrv=$withval]
  298. )
  299. if test "x$httpsrv" != "xno"; then
  300. PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd >= 0.9.5],[
  301. AC_DEFINE([USE_LIBMICROHTTPD],[1],[Defined to 1 if libmicrohttpd support is wanted])
  302. httpsrv=yes
  303. ],[
  304. if test "x$httpsrv" = "xyes"; then
  305. AC_MSG_ERROR([Unable to find libmicrohttpd 0.9.5+])
  306. else
  307. AC_MSG_WARN([libmicrohttpd 0.9.5+ not found; getwork proxy will be unavailable])
  308. fi
  309. ])
  310. fi
  311. AM_CONDITIONAL([USE_LIBMICROHTTPD], [test x$httpsrv = xyes])
  312. AC_ARG_ENABLE([modminer],
  313. [AC_HELP_STRING([--disable-modminer],[Compile support for ModMiner (default enabled)])],
  314. [modminer=$enableval],
  315. [modminer=yes]
  316. )
  317. if test "x$modminer" = xyes; then
  318. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  319. fi
  320. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  321. PKG_PROG_PKG_CONFIG()
  322. libusb=no
  323. libusb_include_path=""
  324. PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
  325. libusb=yes
  326. ],[
  327. for usb_lib in usb-1.0 usb; do
  328. AC_CHECK_LIB($usb_lib, libusb_init, [
  329. libusb=yes
  330. break
  331. ])
  332. done
  333. if test "x$libusb" = xyes; then
  334. AC_CHECK_DECL([libusb_init],[
  335. true
  336. ],[
  337. AC_PROG_CPP
  338. AC_MSG_CHECKING([whether libusb_init is declared in subdirectory])
  339. libusb_include_path=`echo '#include <libusb-1.0/libusb.h>' | ${CPP} -M - 2>/dev/null | sed 's/^[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\)\/.*$/\1/;t;d'`
  340. if test "x$libusb_include_path" != "x"; then
  341. LIBUSB_LIBS="-l$usb_lib"
  342. LIBUSB_CFLAGS="-I$libusb_include_path"
  343. AC_MSG_RESULT([yes])
  344. else
  345. libusb=no
  346. AC_MSG_RESULT([no])
  347. fi
  348. ],[#include <libusb.h>])
  349. fi
  350. ])
  351. AC_ARG_ENABLE([x6500],
  352. [AC_HELP_STRING([--disable-x6500],[Compile support for X6500 (default if libusb)])],
  353. [x6500=$enableval],
  354. [x6500=auto]
  355. )
  356. if test "x$x6500$libusb" = xyesno; then
  357. AC_MSG_ERROR([Could not find libusb, required for X6500 support])
  358. elif test "x$x6500" = xauto; then
  359. x6500="$libusb"
  360. if test "x$libusb" = xno; then
  361. AC_MSG_WARN([Could not find libusb, required for X6500 support])
  362. x6500warn=yes
  363. fi
  364. fi
  365. if test "x$x6500" = xyes; then
  366. AC_DEFINE([USE_X6500], [1], [Defined to 1 if X6500 support is wanted])
  367. fi
  368. AM_CONDITIONAL([HAS_X6500], [test x$x6500 = xyes])
  369. AC_ARG_ENABLE([ztex],
  370. [AC_HELP_STRING([--disable-ztex],[Compile support for ZTEX (default if libusb)])],
  371. [ztex=$enableval],
  372. [ztex=auto]
  373. )
  374. if test "x$ztex$libusb" = xyesno; then
  375. AC_MSG_ERROR([Could not find libusb, required for ZTEX support])
  376. elif test "x$ztex" = xauto; then
  377. ztex="$libusb"
  378. if test "x$libusb" = xno; then
  379. AC_MSG_WARN([Could not find libusb, required for ZTEX support])
  380. ztexwarn=yes
  381. fi
  382. fi
  383. if test "x$ztex" = xyes; then
  384. AC_DEFINE([USE_ZTEX], [1], [Defined to 1 if ZTEX support is wanted])
  385. fi
  386. AM_CONDITIONAL([HAS_ZTEX], [test x$ztex = xyes])
  387. if test "x$x6500$ztex" = "xnono"; then
  388. libusb=no
  389. LIBUSB_LIBS=''
  390. LIBUSB_CFLAGS=''
  391. fi
  392. if test "x$libusb" = xyes; then
  393. AC_DEFINE([HAVE_LIBUSB], [1], [Define if you have libusb-1.0])
  394. save_CFLAGS="$CFLAGS"
  395. CFLAGS="$LIBUSB_CFLAGS $CFLAGS"
  396. AC_CHECK_DECLS([libusb_error_name],[true],[true],[#include <libusb.h>])
  397. CFLAGS="$save_CFLAGS"
  398. fi
  399. scrypt="no"
  400. AC_ARG_ENABLE([scrypt],
  401. [AC_HELP_STRING([--enable-scrypt],[Compile support for scrypt mining (default disabled)])],
  402. [scrypt=$enableval]
  403. )
  404. if test "x$scrypt" = xyes; then
  405. AC_DEFINE([USE_SCRYPT], [1], [Defined to 1 if scrypt support is wanted])
  406. fi
  407. need_fpgautils=no
  408. if test x$avalon$icarus$bitforce$modminer$x6500$ztex != xnononononono; then
  409. need_fpgautils=yes
  410. AC_DEFINE([HAVE_FPGAUTILS], [1], [Defined to 1 if fpgautils is being used])
  411. if $have_win32; then
  412. echo '#include <iospeeds.h>' >iospeeds_local.h
  413. else
  414. AC_PROG_CPP
  415. AC_MSG_CHECKING([what baud rates your system supports])
  416. echo '#include <termios.h>' | ${CPP} -dM - 2>/dev/null | sed 's/.*[ ]B\([0-9][0-9]*\)[ ].*/IOSPEED(\1)/' | grep IOSPEED >iospeeds_local.h
  417. if grep -q IOSPEED iospeeds_local.h; then
  418. AC_MSG_RESULT([done])
  419. else
  420. AC_MSG_RESULT([failed, using standard POSIX])
  421. echo '#include <iospeeds_posix.h>' >iospeeds_local.h
  422. fi
  423. fi
  424. fi
  425. curses="auto"
  426. AC_ARG_WITH([curses],
  427. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  428. [curses=$withval]
  429. )
  430. if test "x$curses" = "xno"; then
  431. cursesmsg='User specified --without-curses. TUI support DISABLED'
  432. else
  433. orig_libs="$LIBS"
  434. if test "x${curses}" = "xyes"; then
  435. preferl=''
  436. else
  437. preferl="${curses} ${curses}6 ${curses}5"
  438. fi
  439. for wideornot in w u ''; do
  440. for ncursesver in '' 6 5; do
  441. preferl="${preferl} ncurses${wideornot}${ncursesver}"
  442. done
  443. preferl="${preferl} pdcurses${wideornot}"
  444. done
  445. if test "x$cross_compiling" != "xyes"; then
  446. AC_MSG_CHECKING([for best native curses library])
  447. orig_cflags="$CFLAGS"
  448. for curses_lib in ${preferl}; do
  449. if ! ${curses_lib}-config --cflags >/dev/null 2>/dev/null; then
  450. continue
  451. fi
  452. CFLAGS="$orig_cflags $(${curses_lib}-config --cflags)"
  453. LIBS="$orig_libs $(${curses_lib}-config --libs)"
  454. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  455. #include <curses.h>
  456. ]], [[
  457. WINDOW *w = NULL;
  458. mvwprintw(w, 2, 2, "Testing %s", "o hai");
  459. ]])], [
  460. curses=yes
  461. cursesmsg="FOUND: ${curses_lib}"
  462. AC_MSG_RESULT([$curses_lib])
  463. NCURSES_LIBS=`${curses_lib}-config --libs`
  464. NCURSES_CPPFLAGS=`${curses_lib}-config --cflags`
  465. break
  466. ], [
  467. AC_MSG_WARN([${curses_lib} doesn't seem to be installed properly])
  468. ])
  469. done
  470. CFLAGS="$orig_cflags"
  471. if test "x$curses" != "xyes"; then
  472. AC_MSG_RESULT([none?])
  473. fi
  474. fi
  475. if test "x$curses" != "xyes"; then
  476. for sym in addwstr addstr; do
  477. AC_SEARCH_LIBS(${sym}, ${preferl}, [
  478. curses=yes
  479. eval "curseslib=\"\${ac_cv_search_${sym}}\""
  480. cursesmsg="FOUND: ${curseslib}"
  481. cursesmsg="${cursesmsg/-l/}"
  482. if test "x${curseslib}" != "xnone required"; then
  483. NCURSES_LIBS="${curseslib}"
  484. fi
  485. break
  486. ], [
  487. test "x$sym" != "addstr" && continue
  488. if test "x$curses" = "xyes"; then
  489. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  490. else
  491. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  492. curses=no
  493. cursesmsg='NOT FOUND. TUI support DISABLED'
  494. fi
  495. ])
  496. done
  497. fi
  498. if test "x$curses" = "xyes"; then
  499. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  500. AC_MSG_CHECKING([whether curses library supports wide characters])
  501. LIBS="$orig_libs $NCURSES_CPPFLAGS $NCURSES_LIBS"
  502. AC_LINK_IFELSE([
  503. AC_LANG_PROGRAM([
  504. #define PDC_WIDE
  505. #include <curses.h>
  506. ],[
  507. addwstr(L"test");
  508. ])
  509. ],[
  510. AC_MSG_RESULT([yes])
  511. AC_DEFINE([USE_UNICODE],[1],[Defined to 1 if curses supports wide characters])
  512. ],[
  513. AC_MSG_RESULT([no])
  514. ])
  515. fi
  516. LIBS="$orig_libs"
  517. fi
  518. AC_ARG_WITH([system-libblkmaker], [AC_HELP_STRING([--with-system-libblkmaker], [Use system libblkmaker rather than bundled one (default disabled)])],[true],[with_system_libblkmaker=no])
  519. if test "x$with_system_libblkmaker" = "xyes"; then
  520. PKG_CHECK_MODULES([libblkmaker],[libblkmaker_jansson-0.1],[
  521. true
  522. ],[
  523. AC_MSG_ERROR([Could not find system libblkmaker])
  524. ])
  525. else
  526. save_LDFLAGS="$LDFLAGS"
  527. LDFLAGS="$LDFLAGS -Wl,-zorigin"
  528. origin_LDFLAGS=
  529. AC_MSG_CHECKING([whether the linker recognizes the -zorigin option])
  530. AC_TRY_LINK([],[],[
  531. AC_MSG_RESULT([yes])
  532. origin_LDFLAGS=',-zorigin'
  533. ],[
  534. AC_MSG_RESULT([no])
  535. ])
  536. LDFLAGS="$save_LDFLAGS"
  537. libblkmaker_CFLAGS='-Ilibblkmaker'
  538. libblkmaker_LDFLAGS='-Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs'"$origin_LDFLAGS"
  539. libblkmaker_LIBS='-lblkmaker_jansson-0.1 -lblkmaker-0.1'
  540. AC_CONFIG_SUBDIRS([libblkmaker])
  541. fi
  542. AC_SUBST(libblkmaker_CFLAGS)
  543. AC_SUBST(libblkmaker_LDFLAGS)
  544. AC_SUBST(libblkmaker_LIBS)
  545. AM_CONDITIONAL([NEED_LIBBLKMAKER], [test x$with_system_libblkmaker != xyes])
  546. AM_CONDITIONAL([NEED_DYNCLOCK], [test x$icarus$modminer$x6500$ztex != xnonono])
  547. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$need_fpgautils = xyes])
  548. AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
  549. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  550. AM_CONDITIONAL([HAVE_SENSORS], [test x$with_sensors = xyes])
  551. AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
  552. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  553. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  554. AM_CONDITIONAL([HAS_FPGA], [test x$bitforce$icarus$modminer$x6500$ztex != xnonononono])
  555. dnl Find YASM
  556. has_yasm=false
  557. if test "x$have_x86_32$have_x86_64" != "xfalsefalse"; then
  558. AC_PATH_PROG([YASM],[yasm],[false])
  559. if test "x$YASM" != "xfalse" ; then
  560. AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
  561. yasmver=`"$YASM" --version | head -1 | cut -d\ -f2`
  562. yamajor=`echo $yasmver | cut -d. -f1`
  563. yaminor=`echo $yasmver | cut -d. -f2`
  564. yamini=`echo $yasmver | cut -d. -f3`
  565. if test "$yamajor" -ge "1" ; then
  566. if test "$yamajor" -eq "1" ; then
  567. if test "$yaminor" -ge "0" ; then
  568. if test "$yaminor" -eq "0"; then
  569. if test "$yamini" -ge "1"; then
  570. has_yasm=true
  571. fi
  572. else
  573. has_yasm=true
  574. fi
  575. fi
  576. fi
  577. else
  578. has_yasm=false
  579. fi
  580. if test "x$has_yasm" = "xtrue" ; then
  581. AC_MSG_RESULT([yes])
  582. else
  583. AC_MSG_RESULT([no])
  584. fi
  585. fi
  586. if test "x$has_yasm" = "xfalse" ; then
  587. AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
  588. else
  589. AC_DEFINE([HAVE_YASM], [1], [Defined to 1 if yasm is being used])
  590. if test "x$have_win32$have_cygwin" != "xfalsefalse"; then
  591. if test "x$have_x86_64" = xtrue; then
  592. YASM_FMT="win64"
  593. else
  594. YASM_FMT="coff"
  595. fi
  596. elif test "x$have_macho" = "xtrue"; then
  597. YASM_FMT="macho$bitness"
  598. else
  599. YASM_FMT="elf$bitness"
  600. fi
  601. fi
  602. fi
  603. AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
  604. have_sse2=no
  605. if test "x$cpumining$have_x86_32" = "xyestrue"; then
  606. AC_MSG_CHECKING([if SSE2 code compiles])
  607. save_CFLAGS="$CFLAGS"
  608. for flags in '' '-msse2'; do
  609. CFLAGS="$CFLAGS $flags"
  610. AC_TRY_LINK([
  611. #include <xmmintrin.h>
  612. ],[
  613. int *i = (int *)0xdeadbeef;
  614. __m128i a, b;
  615. a = _mm_set1_epi32(i[0]);
  616. b = _mm_set_epi32(i[0], i[1], i[2], i[3]);
  617. a = _mm_add_epi32(a, b);
  618. a = _mm_andnot_si128(a, b);
  619. a = _mm_or_si128(a, b);
  620. a = _mm_slli_epi32(a, i[4]);
  621. a = _mm_and_si128(a, b);
  622. a = _mm_xor_si128(a, b);
  623. ],[
  624. if test "x$flags" = "x"; then
  625. AC_MSG_RESULT([yes])
  626. else
  627. AC_MSG_RESULT([with $flags])
  628. fi
  629. SSE2_CFLAGS="$flags"
  630. have_sse2=yes
  631. break
  632. ],[
  633. true
  634. ])
  635. done
  636. CFLAGS="${save_CFLAGS}"
  637. if test "x$have_sse2" = "xyes"; then
  638. AC_DEFINE([HAVE_SSE2], [1], [Defined to 1 if yasm is being used])
  639. else
  640. AC_MSG_RESULT([no])
  641. fi
  642. fi
  643. AM_CONDITIONAL([HAVE_SSE2], [test "x$have_sse2" = "xyes"])
  644. if test "x$bitforce$modminer$icarus" != "xnonono"; then
  645. AC_ARG_WITH([libudev], [AC_HELP_STRING([--without-libudev], [Autodetect FPGAs using libudev (default enabled)])],
  646. [libudev=$withval],
  647. [libudev=auto]
  648. )
  649. if test "x$libudev" != "xno"; then
  650. AC_CHECK_HEADER([libudev.h],[
  651. libudev=yes
  652. UDEV_LIBS=-ludev
  653. AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])
  654. ], [
  655. if test "x$libudev" = "xyes"; then
  656. AC_MSG_ERROR([libudev not found])
  657. fi
  658. libudev=no
  659. ])
  660. fi
  661. fi
  662. AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
  663. AC_SUBST(LIBUSB_LIBS)
  664. AC_SUBST(LIBUSB_CFLAGS)
  665. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
  666. if echo "$LIBCURL_CFLAGS" | grep '@CPPFLAG_CURL_STATICLIB@' >/dev/null 2>&1; then
  667. AC_MSG_WARN([Your libcurl pkgconfig file is broken, applying workaround])
  668. LIBCURL_CFLAGS=`echo "$LIBCURL_CFLAGS" | sed 's/@CPPFLAG_CURL_STATICLIB@//'`
  669. fi
  670. AC_SUBST(LIBCURL_LIBS)
  671. AC_CHECK_FUNCS([setrlimit])
  672. dnl CCAN wants to know a lot of vars.
  673. # All the configuration checks. Regrettably, the __attribute__ checks will
  674. # give false positives on old GCCs, since they just cause warnings. But that's
  675. # fairly harmless.
  676. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  677. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  678. [Define if __attribute__((cold))]))
  679. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  680. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  681. [Define if __attribute__((const))]))
  682. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  683. [
  684. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  685. [Define if __attribute__((noreturn))])
  686. AC_DEFINE_UNQUOTED([NORETURN], [__attribute__((noreturn))], [Syntax of noreturn attribute])
  687. ], [
  688. AC_DEFINE_UNQUOTED([NORETURN], [])
  689. ]
  690. )
  691. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  692. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  693. [Define if __attribute__((format(__printf__)))]))
  694. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  695. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  696. [Define if __attribute__((unused))]))
  697. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  698. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  699. [Define if __attribute__((used))]))
  700. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  701. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  702. [Define if have __builtin_constant_p]))
  703. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  704. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  705. [Define if have __builtin_types_compatible_p]))
  706. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  707. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  708. [Define if __attribute__((warn_unused_result))]))
  709. AC_MSG_CHECKING([for roundl function])
  710. save_LIBS="${LIBS}"
  711. LIBS="$LIBS -lm"
  712. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  713. #include <math.h>
  714. ]], [[
  715. return (roundl(*(long double *)0xdeadbeef) == 1.0);
  716. ]])], [
  717. AC_MSG_RESULT([yes])
  718. ], [
  719. AC_MSG_RESULT([no])
  720. AC_DEFINE([NEED_ROUNDL], [1], [Defined to 1 if C99 roundl is missing])
  721. ])
  722. LIBS="${save_LIBS}"
  723. # byteswap functions
  724. AH_TEMPLATE([HAVE_BYTESWAP_H], [Define to use byteswap macros from byteswap.h])
  725. AH_TEMPLATE([HAVE_ENDIAN_H], [Define to use byteswap macros from endian.h])
  726. AH_TEMPLATE([HAVE_SYS_ENDIAN_H], [Define to use byteswap macros from sys/endian.h])
  727. AH_TEMPLATE([HAVE_LIBKERN_OSBYTEORDER_H], [Define to use byteswap macros from libkern/OSByteOrder.h])
  728. BSWAP=''
  729. for sym in bswap_ __builtin_bswap __bswap_ __swap swap OSSwapInt; do
  730. AC_MSG_CHECKING([for ${sym}* functions])
  731. for headerfile in '' byteswap.h endian.h sys/endian.h libkern/OSByteOrder.h; do
  732. BFG_INCLUDE([headerinclude], [${headerfile}])
  733. AC_LINK_IFELSE([
  734. AC_LANG_PROGRAM([
  735. ${headerinclude}
  736. ], [
  737. (void) ${sym}16(0);
  738. (void) ${sym}32(0);
  739. (void) ${sym}64(0);
  740. ])
  741. ], [
  742. BSWAP="${sym}"
  743. if test "x${headerfile}" = "x"; then
  744. AC_MSG_RESULT([yes])
  745. else
  746. AC_MSG_RESULT([found in ${headerfile}])
  747. AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$headerfile]), 1)
  748. fi
  749. break 2
  750. ])
  751. done
  752. AC_MSG_RESULT([no])
  753. done
  754. if test "x$BSWAP" = "x"; then
  755. true # Substitutes are provided in miner.h
  756. elif test "x$BSWAP" = "xbswap_"; then
  757. AC_MSG_CHECKING([if bswap_16 is already a macro])
  758. BFG_PREPROC_IFELSE([defined(bswap_16)], $headerfile, [
  759. AC_MSG_RESULT([yes])
  760. BSWAP=""
  761. ],[
  762. AC_MSG_RESULT([no])
  763. ])
  764. fi
  765. if test "x$BSWAP" != "x"; then
  766. AC_DEFINE_UNQUOTED([bswap_16], ${BSWAP}16, [Define to 16-bit byteswap macro])
  767. AC_DEFINE_UNQUOTED([bswap_32], ${BSWAP}32, [Define to 16-bit byteswap macro])
  768. AC_DEFINE_UNQUOTED([bswap_64], ${BSWAP}64, [Define to 16-bit byteswap macro])
  769. fi
  770. # endian definition macros
  771. AC_MSG_CHECKING([for platform endian])
  772. found_endian=no
  773. for headerfile in '' endian.h sys/endian.h sys/param.h; do
  774. for pfx in '' '__'; do
  775. BFG_PREPROC_IFELSE([defined(${pfx}BYTE_ORDER) && defined(${pfx}BIG_ENDIAN) && defined(${pfx}LITTLE_ENDIAN) && (${pfx}BYTE_ORDER == ${pfx}BIG_ENDIAN || ${pfx}BYTE_ORDER == ${pfx}LITTLE_ENDIAN)], ${headerfile}, [
  776. if test "x$headerfile" = "x"; then
  777. headerfilec=''
  778. else
  779. headerfilec=" (${headerfile})"
  780. fi
  781. BFG_PREPROC_IFELSE([${pfx}BYTE_ORDER == ${pfx}BIG_ENDIAN], ${headerfile}, [
  782. AC_MSG_RESULT([big endian${headerfilec}])
  783. AC_DEFINE(WORDS_BIGENDIAN, 1, [Define if your platform is big endian])
  784. ], [
  785. AC_MSG_RESULT([little endian${headerfilec}])
  786. ])
  787. found_endian=yes
  788. break 2
  789. ],[true])
  790. done
  791. done
  792. if test "x$found_endian" = "xno"; then
  793. if $have_win32 || $have_cygwin; then
  794. AC_MSG_RESULT([assuming little endian (Windows)])
  795. else
  796. # AC_C_BIGENDIAN is reported to have problems, and invasive even if buried in a conditional, so don't use it
  797. AC_MSG_RESULT([unknown])
  798. AC_MSG_ERROR([Unable to identify platform endian])
  799. fi
  800. fi
  801. AC_MSG_CHECKING([if GNU format attribute compiles])
  802. AC_TRY_COMPILE([
  803. #define FORMAT_SYNTAX_CHECK(...) __attribute__(( format(__VA_ARGS__) ))
  804. int myfunc(char *fmt, ...) FORMAT_SYNTAX_CHECK(printf, 1, 2);
  805. int myfunc(char *fmt, ...) {
  806. return 42;
  807. }
  808. ], [
  809. myfunc("abc%d", 42);
  810. ], [
  811. AC_MSG_RESULT([yes])
  812. AC_DEFINE_UNQUOTED([FORMAT_SYNTAX_CHECK(...)], [__attribute__(( format(__VA_ARGS__) ))], [Syntax of format-checking attribute])
  813. ], [
  814. AC_MSG_RESULT([no])
  815. AC_DEFINE_UNQUOTED([FORMAT_SYNTAX_CHECK(...)], [])
  816. ])
  817. AC_MSG_CHECKING([for clock_gettime(CLOCK_MONOTONIC)])
  818. AC_TRY_COMPILE([
  819. #define _GNU_SOURCE
  820. #include <time.h>
  821. ],[
  822. struct timespec ts;
  823. clock_gettime(CLOCK_MONOTONIC, &ts);
  824. ],[
  825. AC_MSG_RESULT([yes])
  826. AC_DEFINE([HAVE_CLOCK_GETTIME_MONOTONIC], [1], [Defined to 1 if clock_gettime(CLOCK_MONOTONIC) is defined])
  827. AC_SEARCH_LIBS([clock_gettime],[rt posix4])
  828. AC_MSG_CHECKING([for clock_gettime(CLOCK_MONOTONIC_RAW)])
  829. AC_TRY_COMPILE([
  830. #define _GNU_SOURCE
  831. #include <time.h>
  832. ],[
  833. struct timespec ts;
  834. clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
  835. ],[
  836. AC_MSG_RESULT([yes])
  837. AC_DEFINE([HAVE_CLOCK_GETTIME_MONOTONIC_RAW], [1], [Defined to 1 if clock_gettime(CLOCK_MONOTONIC_RAW) is defined])
  838. ],[
  839. AC_MSG_RESULT([no])
  840. ])
  841. ],[
  842. AC_MSG_RESULT([no])
  843. ])
  844. if test "x$prefix" = xNONE; then
  845. prefix=/usr/local
  846. fi
  847. AM_CONDITIONAL([NEED_BITSTREAM_FPGAMINER], [test x$modminer$x6500 != xnono])
  848. AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk121016"], [Filename for phatk kernel])
  849. AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm130302"], [Filename for poclbm kernel])
  850. AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn121016"], [Filename for diakgcn kernel])
  851. AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo130302"], [Filename for diablo kernel])
  852. AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt130511"], [Filename for scrypt kernel])
  853. AC_SUBST(PTHREAD_FLAGS)
  854. AC_SUBST(DLOPEN_FLAGS)
  855. AC_SUBST(PTHREAD_LIBS)
  856. AC_SUBST(NCURSES_CPPFLAGS)
  857. AC_SUBST(NCURSES_LIBS)
  858. AC_SUBST(PDCURSES_LIBS)
  859. AC_SUBST(WS2_LIBS)
  860. AC_SUBST(MM_LIBS)
  861. AC_SUBST(MATH_LIBS)
  862. AC_SUBST(UDEV_LIBS)
  863. AC_SUBST(SSE2_CFLAGS)
  864. AC_SUBST(YASM_FMT)
  865. AC_CONFIG_FILES([
  866. Makefile
  867. x86_64/Makefile
  868. x86_32/Makefile
  869. ccan/Makefile
  870. lib/Makefile
  871. ])
  872. AC_OUTPUT
  873. echo
  874. echo
  875. echo
  876. echo "------------------------------------------------------------------------"
  877. echo "$PACKAGE $VERSION"
  878. echo "------------------------------------------------------------------------"
  879. echo
  880. echo
  881. echo "Configuration Options Summary:"
  882. echo
  883. echo " curses.TUI...........: $cursesmsg"
  884. if test "x$scrypt" != xno; then
  885. echo " scrypt...............: Enabled"
  886. else
  887. echo " scrypt...............: Disabled"
  888. fi
  889. echo
  890. if test "x$opencl" = xyes; then
  891. echo " OpenCL...............: Enabled"
  892. else
  893. echo " OpenCL...............: Disabled"
  894. fi
  895. if test "x$with_sensors" = xyes; then
  896. echo " sensors.monitoring.: Enabled"
  897. elif test "x$opencl" = xyes; then
  898. echo " sensors.monitoring.: Disabled"
  899. else
  900. echo " sensors.monitoring.: n/a"
  901. fi
  902. if test "x$adl" = xyes; then
  903. echo " ADL.monitoring.....: Enabled"
  904. elif test "x$opencl" = xyes; then
  905. echo " ADL.monitoring.....: Disabled"
  906. else
  907. echo " ADL.monitoring.....: n/a"
  908. fi
  909. if test "x$avalon" = xyes; then
  910. echo " Avalon.ASICs.........: Enabled"
  911. else
  912. echo " Avalon.ASICs.........: Disabled"
  913. fi
  914. if test "x$bitforce" = xyes; then
  915. echo " BitForce.devices.....: Enabled"
  916. else
  917. echo " BitForce.devices.....: Disabled"
  918. fi
  919. if test "x$icarus" = xyes; then
  920. echo " Icarus.FPGAs.........: Enabled"
  921. else
  922. echo " Icarus.FPGAs.........: Disabled"
  923. fi
  924. if test "x$modminer" = xyes; then
  925. echo " ModMiner.FPGAs.......: Enabled"
  926. else
  927. echo " ModMiner.FPGAs.......: Disabled"
  928. fi
  929. if test "x$x6500" = xyes; then
  930. echo " X6500.FPGAs..........: Enabled"
  931. elif test "x$ztexwarn" = xyes; then
  932. echo " X6500.FPGAs..........: Disabled (libusb not found)"
  933. else
  934. echo " X6500.FPGAs..........: Disabled"
  935. fi
  936. if test "x$ztex" = xyes; then
  937. echo " ZTEX.FPGAs...........: Enabled"
  938. elif test "x$ztexwarn" = xyes; then
  939. echo " ZTEX.FPGAs...........: Disabled (libusb not found)"
  940. else
  941. echo " ZTEX.FPGAs...........: Disabled"
  942. fi
  943. if test "x$httpsrv" = "xyes"; then
  944. echo " getwork.proxy.server.: Enabled"
  945. else
  946. echo " getwork.proxy.server.: Disabled"
  947. fi
  948. if test "x$bitforce$modminer" != xnono; then
  949. echo " libudev.detection....: $libudev"
  950. fi
  951. echo
  952. if test "x$cpumining" = xyes; then
  953. echo " CPU Mining...........: Enabled"
  954. echo " ASM.(for CPU mining).: $has_yasm"
  955. else
  956. echo " CPU Mining...........: Disabled"
  957. fi
  958. echo
  959. echo "Compilation............: make (or gmake)"
  960. echo " CPPFLAGS.............:" $CPPFLAGS $NCURSES_CPPFLAGS $PTHREAD_FLAGS
  961. echo " CFLAGS...............:" $CFLAGS $LIBUSB_CFLAGS $JANSSON_CFLAGS $PTHREAD_FLAGS
  962. echo " LDFLAGS..............:" $LDFLAGS $PTHREAD_FLAGS $PTHREAD_LIBS
  963. echo " LDADD................:" $LIBS $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $UDEV_LIBS $LIBUSB_LIBS
  964. echo
  965. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  966. echo " prefix...............: $prefix"
  967. echo