configure.ac 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  2. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  3. m4_define([v_maj], [2])
  4. m4_define([v_min], [9])
  5. m4_define([v_mic], [0])
  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([bfgminer], [v_ver], [luke-jr+bfgminer@utopios.org])
  14. AC_PREREQ([2.59c])
  15. AC_CANONICAL_SYSTEM
  16. AC_CONFIG_MACRO_DIR([m4])
  17. AC_CONFIG_SRCDIR([miner.c])
  18. AC_CONFIG_HEADERS([config.h])
  19. AM_INIT_AUTOMAKE([foreign])
  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_C99
  43. gl_EARLY
  44. AC_PROG_GCC_TRADITIONAL
  45. AM_PROG_CC_C_O
  46. AC_PROG_RANLIB
  47. gl_INIT
  48. dnl Checks for header files.
  49. AC_HEADER_STDC
  50. AC_CHECK_HEADERS(syslog.h)
  51. AC_CHECK_HEADERS([sys/epoll.h])
  52. AC_CHECK_HEADERS([sys/prctl.h])
  53. AC_FUNC_ALLOCA
  54. have_cygwin=false
  55. have_win32=false
  56. PTHREAD_FLAGS="-lpthread"
  57. USB_LIBS=""
  58. USB_CFLAGS=""
  59. DLOPEN_FLAGS="-ldl"
  60. WS2_LIBS=""
  61. MATH_LIBS="-lm"
  62. case $target in
  63. x86_64-*)
  64. have_x86_64=true
  65. ;;
  66. *)
  67. have_x86_64=false
  68. ;;
  69. esac
  70. case $target in
  71. *-*-mingw*)
  72. have_x86_64=false
  73. have_win32=true
  74. PTHREAD_FLAGS=""
  75. DLOPEN_FLAGS=""
  76. WS2_LIBS="-lws2_32"
  77. AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  78. ;;
  79. *-*-cygwin*)
  80. have_cygwin=true
  81. ;;
  82. powerpc-*-darwin*)
  83. CFLAGS="$CFLAGS -faltivec"
  84. PTHREAD_FLAGS=""
  85. ;;
  86. *-*-darwin*)
  87. PTHREAD_FLAGS=""
  88. ;;
  89. esac
  90. cpumining="no"
  91. AC_ARG_ENABLE([cpumining],
  92. [AC_HELP_STRING([--enable-cpumining],[Build with cpu mining support(default disabled)])],
  93. [cpumining=$enableval]
  94. )
  95. if test "x$cpumining" = xyes; then
  96. AC_DEFINE_UNQUOTED([WANT_CPUMINE], [1], [Enable CPUMINING])
  97. fi
  98. AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
  99. opencl="yes"
  100. AC_ARG_ENABLE([opencl],
  101. [AC_HELP_STRING([--disable-opencl],[Build without support for OpenCL (default enabled)])],
  102. [opencl=$enableval]
  103. )
  104. if test "x$opencl" = xyes; then
  105. AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL support is wanted])
  106. else
  107. DLOPEN_FLAGS=""
  108. fi
  109. AM_CONDITIONAL([HAVE_OPENCL], [test x$opencl = xyes])
  110. AC_CHECK_LIB(pthread, pthread_create, ,
  111. AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
  112. PTHREAD_LIBS=-lpthread
  113. AC_CHECK_LIB(jansson, json_loads, ,
  114. AC_MSG_ERROR([Could not find jansson library]))
  115. if test "x$opencl" = xyes; then
  116. adl="yes"
  117. AC_ARG_ENABLE([adl],
  118. [AC_HELP_STRING([--disable-adl],[Build without ADL monitoring (default enabled)])],
  119. [adl=$enableval]
  120. )
  121. if test x$adl = xyes
  122. then
  123. AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
  124. fi
  125. else
  126. adl="no"
  127. fi
  128. AC_ARG_ENABLE([bitforce],
  129. [AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
  130. [bitforce=$enableval],
  131. [bitforce=yes]
  132. )
  133. if test "x$bitforce" = xyes; then
  134. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  135. fi
  136. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  137. AC_ARG_ENABLE([icarus],
  138. [AC_HELP_STRING([--disable-icarus],[Compile support for Icarus (default enabled)])],
  139. [icarus=$enableval],
  140. [icarus=yes]
  141. )
  142. if test "x$icarus" = xyes; then
  143. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  144. fi
  145. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  146. AC_ARG_ENABLE([modminer],
  147. [AC_HELP_STRING([--disable-modminer],[Compile support for ModMiner (default enabled)])],
  148. [modminer=$enableval],
  149. [modminer=yes]
  150. )
  151. if test "x$modminer" = xyes; then
  152. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  153. fi
  154. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  155. PKG_PROG_PKG_CONFIG()
  156. libusb=no
  157. libusb_include_path=""
  158. PKG_CHECK_MODULES([USB], [libusb-1.0],[
  159. libusb=yes
  160. ],[
  161. AC_CHECK_LIB(usb-1.0, libusb_init,
  162. [
  163. AC_CHECK_DECL([libusb_init],[
  164. libusb=yes
  165. ],[
  166. AC_MSG_CHECKING([whether libusb_init is declared in subdirectory])
  167. libusb_include_path=`echo '#include <libusb-1.0/libusb.h>' | cpp -M 2>/dev/null | sed 's/^[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\)\/.*$/\1/;t;d'`
  168. if test "x$libusb_include_path" != "x"; then
  169. libusb=yes
  170. USB_CFLAGS="-I$libusb_include_path"
  171. AC_MSG_RESULT([yes])
  172. else
  173. AC_MSG_RESULT([no])
  174. fi
  175. ],[#include <libusb.h>])
  176. ],
  177. []
  178. )
  179. ])
  180. if test "x$libusb" = xyes; then
  181. AC_DEFINE([HAVE_LIBUSB], [1], [Defined to 1 if libusb is wanted])
  182. USB_LIBS="-lusb-1.0"
  183. save_CFLAGS="$CFLAGS"
  184. CFLAGS="$USB_CFLAGS $CFLAGS"
  185. AC_CHECK_DECLS([libusb_error_name],[],[],[#include <libusb.h>])
  186. CFLAGS="$save_CFLAGS"
  187. fi
  188. AC_ARG_ENABLE([x6500],
  189. [AC_HELP_STRING([--disable-x6500],[Compile support for X6500 (default if libusb)])],
  190. [x6500=$enableval],
  191. [x6500=auto]
  192. )
  193. if test "x$x6500$libusb" = xyesno; then
  194. AC_MSG_ERROR([Could not find libusb, required for X6500 support])
  195. elif test "x$x6500" = xauto; then
  196. x6500="$libusb"
  197. if test "x$libusb" = xno; then
  198. AC_MSG_WARN([Could not find libusb, required for X6500 support])
  199. x6500warn=yes
  200. fi
  201. fi
  202. if test "x$x6500" = xyes; then
  203. AC_DEFINE([USE_X6500], [1], [Defined to 1 if X6500 support is wanted])
  204. fi
  205. AM_CONDITIONAL([HAS_X6500], [test x$x6500 = xyes])
  206. AC_ARG_ENABLE([ztex],
  207. [AC_HELP_STRING([--disable-ztex],[Compile support for Ztex (default if libusb)])],
  208. [ztex=$enableval],
  209. [ztex=auto]
  210. )
  211. if test "x$ztex$libusb" = xyesno; then
  212. AC_MSG_ERROR([Could not find libusb, required for Ztex support])
  213. elif test "x$ztex" = xauto; then
  214. ztex="$libusb"
  215. if test "x$libusb" = xno; then
  216. AC_MSG_WARN([Could not find libusb, required for Ztex support])
  217. ztexwarn=yes
  218. fi
  219. fi
  220. if test "x$ztex" = xyes; then
  221. AC_DEFINE([USE_ZTEX], [1], [Defined to 1 if Ztex support is wanted])
  222. fi
  223. AM_CONDITIONAL([HAS_ZTEX], [test x$ztex = xyes])
  224. scrypt="no"
  225. AC_ARG_ENABLE([scrypt],
  226. [AC_HELP_STRING([--enable-scrypt],[Compile support for scrypt mining (default disabled)])],
  227. [scrypt=$enableval]
  228. )
  229. if test "x$scrypt" = xyes; then
  230. AC_DEFINE([USE_SCRYPT], [1], [Defined to 1 if scrypt support is wanted])
  231. fi
  232. curses="auto"
  233. AC_ARG_WITH([curses],
  234. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  235. [curses=$withval]
  236. )
  237. if test "x$curses" = "xno"; then
  238. cursesmsg='User specified --without-curses. TUI support DISABLED'
  239. else
  240. if test "x$cross_compiling" != "xyes"; then
  241. AC_MSG_CHECKING([for best native curses library])
  242. orig_libs="$LIBS"
  243. orig_cflags="$CFLAGS"
  244. for curses_lib in ncurses{w,}{,6,5}; do
  245. if ! ${curses_lib}-config --cflags >/dev/null 2>/dev/null; then
  246. continue
  247. fi
  248. CFLAGS="$orig_cflags $(${curses_lib}-config --cflags)"
  249. LIBS="$orig_libs $(${curses_lib}-config --libs)"
  250. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  251. #include <curses.h>
  252. ]], [[
  253. WINDOW *w = NULL;
  254. mvwprintw(w, 2, 2, "Testing %s", "o hai");
  255. ]])], [
  256. curses=yes
  257. cursesmsg="FOUND: ${curses_lib}"
  258. AC_MSG_RESULT([$curses_lib])
  259. NCURSES_LIBS=`${curses_lib}-config --libs`
  260. NCURSES_CPPFLAGS=`${curses_lib}-config --cflags`
  261. break
  262. ], [
  263. AC_MSG_WARN([${curses_lib} doesn't seem to be installed properly])
  264. ])
  265. done
  266. LIBS="$orig_libs"
  267. CFLAGS="$orig_cflags"
  268. fi
  269. if test "x$curses" != "xyes"; then
  270. AC_SEARCH_LIBS(addstr, ncursesw ncurses pdcurses, [
  271. curses=yes
  272. cursesmsg="FOUND: ${ac_cv_search_addstr:2}"
  273. ], [
  274. if test "x$curses" = "xyes"; then
  275. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  276. else
  277. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  278. curses=no
  279. cursesmsg='NOT FOUND. TUI support DISABLED'
  280. fi
  281. ])
  282. fi
  283. if test "x$curses" = "xyes"; then
  284. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  285. fi
  286. fi
  287. AC_CONFIG_SUBDIRS([libblkmaker])
  288. AM_CONDITIONAL([NEED_LIBBLKMAKER], [true])
  289. AM_CONDITIONAL([NEED_DYNCLOCK], [test x$icarus$modminer$x6500$ztex != xnonono])
  290. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$icarus$bitforce$modminer$x6500$ztex != xnononono])
  291. AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
  292. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  293. AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
  294. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  295. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  296. JANSSON_LIBS=-ljansson
  297. dnl Find YASM
  298. has_yasm=false
  299. AC_PATH_PROG([YASM],[yasm],[false])
  300. if test "x$YASM" != "xfalse" ; then
  301. AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
  302. yasmver=`yasm --version | head -1 | cut -d\ -f2`
  303. yamajor=`echo $yasmver | cut -d. -f1`
  304. yaminor=`echo $yasmver | cut -d. -f2`
  305. yamini=`echo $yasmver | cut -d. -f3`
  306. if test "$yamajor" -ge "1" ; then
  307. if test "$yamajor" -eq "1" ; then
  308. if test "$yaminor" -ge "0" ; then
  309. if test "$yaminor" -eq "0"; then
  310. if test "$yamini" -ge "1"; then
  311. has_yasm=true
  312. fi
  313. else
  314. has_yasm=true
  315. fi
  316. fi
  317. fi
  318. else
  319. has_yasm=false
  320. fi
  321. if test "x$has_yasm" = "xtrue" ; then
  322. AC_MSG_RESULT([yes])
  323. else
  324. AC_MSG_RESULT([no])
  325. fi
  326. fi
  327. if test "x$has_yasm" = "xfalse" ; then
  328. AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
  329. fi
  330. AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
  331. if test "x$bitforce$modminer" != xnono; then
  332. AC_ARG_WITH([libudev], [AC_HELP_STRING([--without-libudev], [Autodetect FPGAs using libudev (default enabled)])],
  333. [libudev=$withval],
  334. [libudev=auto]
  335. )
  336. if test "x$libudev" != "xno"; then
  337. AC_CHECK_HEADER([libudev.h],[
  338. libudev=yes
  339. UDEV_LIBS=-ludev
  340. AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])
  341. ], [
  342. if test "x$libudev" = "xyes"; then
  343. AC_MSG_ERROR([libudev not found])
  344. fi
  345. libudev=no
  346. ])
  347. fi
  348. fi
  349. AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
  350. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
  351. AC_SUBST(LIBCURL_LIBS)
  352. dnl CCAN wants to know a lot of vars.
  353. # All the configuration checks. Regrettably, the __attribute__ checks will
  354. # give false positives on old GCCs, since they just cause warnings. But that's
  355. # fairly harmless.
  356. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  357. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  358. [Define if __attribute__((cold))]))
  359. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  360. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  361. [Define if __attribute__((const))]))
  362. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  363. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  364. [Define if __attribute__((noreturn))]))
  365. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  366. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  367. [Define if __attribute__((format(__printf__)))]))
  368. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  369. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  370. [Define if __attribute__((unused))]))
  371. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  372. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  373. [Define if __attribute__((used))]))
  374. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  375. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  376. [Define if have __builtin_constant_p]))
  377. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  378. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  379. [Define if have __builtin_types_compatible_p]))
  380. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  381. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  382. [Define if __attribute__((warn_unused_result))]))
  383. if test "x$prefix" = xNONE; then
  384. prefix=/usr/local
  385. fi
  386. AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to bfgminer install])
  387. AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk121016"], [Filename for phatk kernel])
  388. AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm121016"], [Filename for poclbm kernel])
  389. AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn121016"], [Filename for diakgcn kernel])
  390. AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo121016"], [Filename for diablo kernel])
  391. AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt121016"], [Filename for scrypt kernel])
  392. AC_SUBST(JANSSON_LIBS)
  393. AC_SUBST(PTHREAD_FLAGS)
  394. AC_SUBST(DLOPEN_FLAGS)
  395. AC_SUBST(PTHREAD_LIBS)
  396. AC_SUBST(NCURSES_CPPFLAGS)
  397. AC_SUBST(NCURSES_LIBS)
  398. AC_SUBST(PDCURSES_LIBS)
  399. AC_SUBST(WS2_LIBS)
  400. AC_SUBST(MATH_LIBS)
  401. AC_SUBST(UDEV_LIBS)
  402. AC_SUBST(USB_LIBS)
  403. AC_SUBST(USB_CFLAGS)
  404. AC_CONFIG_FILES([
  405. Makefile
  406. x86_64/Makefile
  407. x86_32/Makefile
  408. ccan/Makefile
  409. lib/Makefile
  410. ])
  411. AC_OUTPUT
  412. echo
  413. echo
  414. echo
  415. echo "------------------------------------------------------------------------"
  416. echo "$PACKAGE $VERSION"
  417. echo "------------------------------------------------------------------------"
  418. echo
  419. echo
  420. echo "Configuration Options Summary:"
  421. echo
  422. echo " curses.TUI...........: $cursesmsg"
  423. if test "x$scrypt" != xno; then
  424. echo " scrypt...............: Enabled"
  425. else
  426. echo " scrypt...............: Disabled"
  427. fi
  428. echo
  429. if test "x$opencl" = xyes; then
  430. echo " OpenCL...............: Enabled"
  431. else
  432. echo " OpenCL...............: Disabled"
  433. fi
  434. if test "x$adl" = xyes; then
  435. echo " ADL.monitoring.....: Enabled"
  436. elif test "x$opencl" = xyes; then
  437. echo " ADL.monitoring.....: Disabled"
  438. else
  439. echo " ADL.monitoring.....: n/a"
  440. fi
  441. if test "x$bitforce" = xyes; then
  442. echo " BitForce.FPGAs.......: Enabled"
  443. else
  444. echo " BitForce.FPGAs.......: Disabled"
  445. fi
  446. if test "x$icarus" = xyes; then
  447. echo " Icarus.FPGAs.........: Enabled"
  448. else
  449. echo " Icarus.FPGAs.........: Disabled"
  450. fi
  451. if test "x$modminer" = xyes; then
  452. echo " ModMiner.FPGAs.......: Enabled"
  453. else
  454. echo " ModMiner.FPGAs.......: Disabled"
  455. fi
  456. if test "x$x6500" = xyes; then
  457. echo " X6500.FPGAs..........: Enabled"
  458. elif test "x$ztexwarn" = xyes; then
  459. echo " X6500.FPGAs..........: Disabled (libusb not found)"
  460. else
  461. echo " X6500.FPGAs..........: Disabled"
  462. fi
  463. if test "x$ztex" = xyes; then
  464. echo " Ztex.FPGAs...........: Enabled"
  465. elif test "x$ztexwarn" = xyes; then
  466. echo " Ztex.FPGAs...........: Disabled (libusb not found)"
  467. else
  468. echo " Ztex.FPGAs...........: Disabled"
  469. fi
  470. if test "x$bitforce$modminer" != xnono; then
  471. echo " libudev.detection....: $libudev"
  472. fi
  473. echo
  474. if test "x$cpumining" = xyes; then
  475. echo " CPU Mining...........: Enabled"
  476. echo " ASM.(for CPU mining).: $has_yasm"
  477. else
  478. echo " CPU Mining...........: Disabled"
  479. fi
  480. echo
  481. echo "Compilation............: make (or gmake)"
  482. echo " CPPFLAGS.............: $CPPFLAGS $NCURSES_CPPFLAGS"
  483. echo " CFLAGS...............: $CFLAGS"
  484. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS $USB_CFLAGS"
  485. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $UDEV_LIBS $USB_LIBS"
  486. echo
  487. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  488. echo " prefix...............: $prefix"
  489. echo