From 8e154d59efdbbb95fd4e46623a735a7049cea754 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sun, 6 Aug 2006 18:01:28 +0000 Subject: Added patch to improve RPM building --- configure.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 5781ce7..99ebdee 100644 --- a/configure.in +++ b/configure.in @@ -26,6 +26,19 @@ AC_CHECK_PROGS(AWK, awk) if test x$AWK = "x"; then AC_MSG_ERROR([awk is required]) fi +AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no") +if test "x$ac_cv_have_rpm" = "xyes"; then + rpm --define '_topdir /tmp' > /dev/null 2>&1 + AC_MSG_CHECKING(to see if we can redefine _topdir) + if test $? -eq 0 ; then + AC_MSG_RESULT(yes) + HAVE_RPM=yes + else + AC_MSG_RESULT(no. You'll have to build packages manually.) + HAVE_RPM=no + fi +fi +AC_SUBST(HAVE_RPM) AC_SUBST([CFGDIR], "${sysconfdir}") -- cgit v1.2.3