configure.ac: Fix rpm check

Some versions of rpmbuild fail this test. Use rpm instead.

Fixup for bbea6a1c9f.

Change-Id: I6068541d5944b08140ea7fc5efd13ad488dda1f3
Reviewed-on: https://code.wireshark.org/review/15131
Reviewed-by: João Valverde <j@v6e.pt>
This commit is contained in:
João Valverde 2016-04-27 08:57:35 +01:00 committed by João Valverde
parent b1d6f39b53
commit ac6fdef87a
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ AC_SUBST(HAVE_SVR4_PACKAGING)
AC_CHECK_PROGS(RPMBUILD, [rpmbuild], [false])
if test "x$RPMBUILD" != "xfalse" ; then
AC_MSG_CHECKING([to see if we can redefine _topdir])
$RPMBUILD --define '_topdir /tmp' > /dev/null 2>&1
rpm --define '_topdir /tmp' > /dev/null 2>&1
if test $? -eq 0 ; then
AC_MSG_RESULT(yes)
have_rpm=yes