configure.ac: Fix rpm check
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Wed, 27 Apr 2016 07:57:35 +0000 (08:57 +0100)
committerJoão Valverde <j@v6e.pt>
Wed, 27 Apr 2016 08:02:03 +0000 (08:02 +0000)
Some versions of rpmbuild fail this test. Use rpm instead.

Fixup for bbea6a1c9f58d7f87424e0df6f9821d8ef1d3b00.

Change-Id: I6068541d5944b08140ea7fc5efd13ad488dda1f3
Reviewed-on: https://code.wireshark.org/review/15131
Reviewed-by: João Valverde <j@v6e.pt>
configure.ac

index 1364962c8ff43dd80f4d330018d6dd08007a586b..2780d9d2339a491869c3bedf9c6c3a998722610a 100644 (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