Browse Source

Add configuration option for hashfast devices, tidying up configure.ac slightly.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
2f72efb0a0
  1. 49
      configure.ac

49
configure.ac

@ -220,6 +220,17 @@ fi
AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes]) AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
avalon="no"
AC_ARG_ENABLE([avalon],
[AC_HELP_STRING([--enable-avalon],[Compile support for Avalon (default disabled)])],
[avalon=$enableval]
)
if test "x$avalon" = xyes; then
AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
fi
AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
bflsc="no" bflsc="no"
AC_ARG_ENABLE([bflsc], AC_ARG_ENABLE([bflsc],
@ -242,6 +253,17 @@ if test "x$bitforce" = xyes; then
fi fi
AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes]) AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
hashfast="no"
AC_ARG_ENABLE([hashfast],
[AC_HELP_STRING([--enable-hashfast],[Compile support for Hashfast (default disabled)])],
[hashfast=$enableval]
)
if test "x$hashfast" = xyes; then
AC_DEFINE([USE_HASHFAST], [1], [Defined to 1 if Hashfast support is wanted])
fi
AM_CONDITIONAL([HAS_HASHFAST], [test x$hashfast = xyes])
icarus="no" icarus="no"
AC_ARG_ENABLE([icarus], AC_ARG_ENABLE([icarus],
@ -253,17 +275,6 @@ if test "x$icarus" = xyes; then
fi fi
AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes]) AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
avalon="no"
AC_ARG_ENABLE([avalon],
[AC_HELP_STRING([--enable-avalon],[Compile support for Avalon (default disabled)])],
[avalon=$enableval]
)
if test "x$avalon" = xyes; then
AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
fi
AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
modminer="no" modminer="no"
AC_ARG_ENABLE([modminer], AC_ARG_ENABLE([modminer],
@ -310,7 +321,7 @@ else
]) ])
fi fi
if test x$avalon$bitforce$modminer$bflsc$icarus != xnonononono; then if test x$avalon$bitforce$modminer$bflsc$icarus$hashfast != xnononononono; then
want_usbutils=true want_usbutils=true
else else
want_usbutils=false want_usbutils=false
@ -464,14 +475,14 @@ if test "x$opencl" != xno; then
else else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED" echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
if test "x$bitforce$avalon$icarus$ztex$modminer$bflsc" = xnononononono; then if test "x$bitforce$avalon$icarus$ztex$modminer$bflsc$hashfast" = xnonononononono; then
AC_MSG_ERROR([No mining configured in]) AC_MSG_ERROR([No mining configured in])
fi fi
echo " scrypt...............: Disabled (needs OpenCL)" echo " scrypt...............: Disabled (needs OpenCL)"
fi fi
else else
echo " OpenCL...............: Detection overrided. GPU mining support DISABLED" echo " OpenCL...............: Detection overrided. GPU mining support DISABLED"
if test "x$bitforce$icarus$avalon$ztex$modminer$bflsc" = xnononononono; then if test "x$bitforce$icarus$avalon$ztex$modminer$bflsc$hashfast" = xnonononononono; then
AC_MSG_ERROR([No mining configured in]) AC_MSG_ERROR([No mining configured in])
fi fi
echo " scrypt...............: Disabled (needs OpenCL)" echo " scrypt...............: Disabled (needs OpenCL)"
@ -506,10 +517,16 @@ else
echo " BitForce.FPGAs.......: Disabled" echo " BitForce.FPGAs.......: Disabled"
fi fi
if test "x$hashfast" = xyes; then
echo " Hashfast.ASICs.......: Enabled"
else
echo " Hashfast.ASICs.......: Disabled"
fi
if test "x$icarus" = xyes; then if test "x$icarus" = xyes; then
echo " Icarus.FPGAs.........: Enabled" echo " Icarus.ASICs/FPGAs...: Enabled"
else else
echo " Icarus.FPGAs.........: Disabled" echo " Icarus.ASICs/FPGAs...: Disabled"
fi fi
if test "x$modminer" = xyes; then if test "x$modminer" = xyes; then

Loading…
Cancel
Save