From: Michael Orlitzky Date: Wed, 25 Oct 2023 21:15:49 +0000 (-0400) Subject: configure.ac: fix all AC_PATH_PROG checks X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e8976d987f67e4c1a3b57b823e11327cb9decf23;p=charm-bypass.git configure.ac: fix all AC_PATH_PROG checks The third argument to AC_PATH_PROG is a value to set, not an action to perform, when the test fails. So all of the existing checks were wrong and failed to fail when the program is missing. I do this for a living. --- diff --git a/configure.ac b/configure.ac index 18411ea..8f0f596 100644 --- a/configure.ac +++ b/configure.ac @@ -5,27 +5,27 @@ AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_SRCDIR([tableau.svg]) -AC_PATH_PROG( - [BASE64], - [base64], +AC_PATH_PROG([BASE64], [base64]) +AS_IF( + [test -z "${BASE64}"], [AC_MSG_ERROR([base64 program not found])] ) -AC_PATH_PROG( - [FONTFORGE], - [fontforge], +AC_PATH_PROG([FONTFORGE], [fontforge]) +AS_IF( + [test -z "${FONTFORGE}"], [AC_MSG_ERROR([fontforge program not found])] ) -AC_PATH_PROG( - [SCOUR], - [scour], +AC_PATH_PROG([SCOUR], [scour]) +AS_IF( + [test -z "${SCOUR}"], [AC_MSG_ERROR([scour program not found])] ) -AC_PATH_PROG( - [XSLTPROC], - [xsltproc], +AC_PATH_PROG([XSLTPROC], [xsltproc]) +AS_IF( + [test -z "${XSLTPROC}"], [AC_MSG_ERROR([xsltproc program not found])] )