From: Jonathan Gray Date: Sat, 10 Oct 2015 06:42:40 +0000 (+1100) Subject: configure.ac: ensure RM is set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99c4079c37ac04a0dad4ead3117f786706c80aaf;p=mesa.git configure.ac: ensure RM is set GNU make predefines RM to rm -f but this is not required by POSIX so ensure that RM is set. This fixes "make clean" on OpenBSD. v2: use AC_CHECK_PROG Signed-off-by: Jonathan Gray CC: "10.6 11.0" Reviewed-by: Emil Velikov --- diff --git a/configure.ac b/configure.ac index 0a3329021c0..d3df1955d26 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,8 @@ AC_SYS_LARGEFILE LT_PREREQ([2.2]) LT_INIT([disable-static]) +AC_CHECK_PROG(RM, rm, [rm -f]) + AX_PROG_BISON([], AS_IF([test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"], [AC_MSG_ERROR([bison not found - unable to compile glcpp-parse.y])]))