mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
31 lines
881 B
Diff
31 lines
881 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Thierry Vignaud <thierry.vignaud@gmail.com>
|
||
|
Date: Mon, 8 Jun 2020 06:50:21 +0200
|
||
|
Subject: [PATCH] fix build with rpm-4.16
|
||
|
|
||
|
Signed-off-by: Thierry Vignaud <thierry.vignaud@gmail.com>
|
||
|
---
|
||
|
configure.ac | 9 +++++++++
|
||
|
1 file changed, 9 insertions(+)
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index eff160b6931..5d3316185da 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -1887,6 +1887,15 @@ if test x"$rpm_sort_excuse" = x ; then
|
||
|
[Define to 1 if you have the rpm library.])
|
||
|
fi
|
||
|
|
||
|
+if test x"$LIBRPM" = x ; then
|
||
|
+ # Check for rpm library.
|
||
|
+ AC_CHECK_LIB([rpmio], [rpmvercmp], [],
|
||
|
+ [rpm_sort_excuse="rpmio missing rpmvercmp"])
|
||
|
+ LIBRPM="-lrpmio";
|
||
|
+ AC_DEFINE([HAVE_RPMIO], [1],
|
||
|
+ [Define to 1 if you have the rpm library.])
|
||
|
+fi
|
||
|
+
|
||
|
AC_SUBST([LIBRPM])
|
||
|
|
||
|
LIBGEOM=
|