configure.ac: ensure RM is set
authorJonathan Gray <jsg@jsg.id.au>
Sat, 10 Oct 2015 06:42:40 +0000 (17:42 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:09:38 +0000 (14:09 +0100)
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 <jsg@jsg.id.au>
CC: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac

index 0a3329021c0f65f4e8e5ff5f670dce6f8763d053..d3df1955d262210b069fed923575dccdcc6f1233 100644 (file)
@@ -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])]))