diff --git a/ci_build.sh b/ci_build.sh index fd1253c02e..cf28f9b2d8 100755 --- a/ci_build.sh +++ b/ci_build.sh @@ -1294,7 +1294,11 @@ default|default-alldrv|default-alldrv:no-distcheck|default-all-errors|default-sp CONFIG_OPTS+=("--with-cgi=auto") fi else - CONFIG_OPTS+=("--with-cgi=auto") + if [ "${CANBUILD_LIBGD_CGI-}" = "no" ] ; then + CONFIG_OPTS+=("--without-cgi") + else + CONFIG_OPTS+=("--with-cgi=auto") + fi fi ;; "default-alldrv:no-distcheck")