From 952c033ef2629acde884093c9c44fb3bddcecb33 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Sat, 29 Mar 2014 18:53:34 +0200 Subject: [PATCH] build: move error check to after summary in configure.ac. Otherwise, if OpenCL is not found, the rest of the summary is not printed. --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 119cb0b4..267bc6d6 100644 --- a/configure.ac +++ b/configure.ac @@ -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 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 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