configure.ac 29 KB

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