Browse Source

build: move error check to after summary in configure.ac.

Otherwise, if OpenCL is not found, the rest of the summary is not
printed.
build-mingw
Noel Maersk 10 years ago
parent
commit
952c033ef2
  1. 9
      configure.ac

9
configure.ac

@ -363,14 +363,11 @@ AC_CONFIG_FILES([ @@ -363,14 +363,11 @@ AC_CONFIG_FILES([
AC_OUTPUT
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo
echo "Configuration Options Summary:"
echo
@ -388,7 +385,6 @@ if test $found_opencl = 1; then @@ -388,7 +385,6 @@ if test $found_opencl = 1; then
echo " OpenCL...............: FOUND. GPU mining support enabled"
else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
AC_MSG_ERROR([OpenCL not found])
fi
if test "x$adl" != xno; then
@ -415,3 +411,8 @@ echo @@ -415,3 +411,8 @@ echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo
# Error out here, so the entire summary can be printed first
if test $found_opencl != 1; then
AC_MSG_ERROR([OpenCL not found])
fi

Loading…
Cancel
Save