From e1cbc878becd2bcad1c070f3ed5472c2dfb43cf9 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 1 Aug 2007 15:16:53 +0000 Subject: [PATCH] Fixed test for rpm program. --- m4/as-linux.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 7da43d88..03f71302 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -210,11 +210,11 @@ AC_DEFUN([AS_LINUX_RPM_TARGET], then dnl if we have rpm, try to guess the target of the kernel dnl we want to build for using rpm - AC_PATH_PROG(RPM, rpm, yes, no) + AC_PATH_PROG([RPM], [rpm], [no]) if test "x$RPM" != "xno" ; then - if rpm -q kernel-$RELEASE > /dev/null + if $RPM -q kernel-$RELEASE > /dev/null then - LINUX_RPM_TARGET=`rpm -q --queryformat %{arch} kernel-$RELEASE` + LINUX_RPM_TARGET=`$RPM -q --queryformat %{arch} kernel-$RELEASE` else AC_MSG_NOTICE([Cannot guess target arch, consider setting it using --with-rpm-target]) fi -- 2.26.2