File openhpi-subagent-2.3.4-hpiutils.patch of Package openhpi-subagent

--- configure
+++ configure
@@ -4397,14 +4397,20 @@
 
 # uncomment the section below when libopenhpiutils
 # has its own pkgconfig file 'openhpiutils.pc'
-# HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
-# if test "x$HPIUTILS_LIBS" = "x"; then
-#     AC_MSG_ERROR([
-# *** OpenHpiUtils pkgconfig file wasn't found
-# *** we can't determine proper build flags without it
-# *** please check your installation
-# ])
-# fi
+HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
+if test "x$HPIUTILS_LIBS" = "x"; then
+    { { echo "$as_me:$LINENO: error:
+*** OpenHpiUtils pkgconfig file wasn't found
+*** we can't determine proper build flags without it
+*** please check your installation
+" >&5
+echo "$as_me: error:
+*** OpenHpiUtils pkgconfig file wasn't found
+*** we can't determine proper build flags without it
+*** please check your installation
+" >&2;}
+   { (exit 1); exit 1; }; }
+fi
 
 LIBS=$HPI_LIBS
 # Checks for libraries
@@ -4578,8 +4584,8 @@
         have_hpiutils=yes
 # uncomment the 2 lines below when openhpiutils
 # has its own pkgconfig file 'openhpiutils.pc'
-#        HPIUTILS_FLAGS=`pkg-config --cflags openhpiutils`
-#        HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
+        HPIUTILS_FLAGS=`pkg-config --cflags openhpiutils`
+        HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
 
 else
 
--- configure.ac
+++ configure.ac
@@ -65,14 +65,14 @@
 
 # uncomment the section below when libopenhpiutils
 # has its own pkgconfig file 'openhpiutils.pc'
-# HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
-# if test "x$HPIUTILS_LIBS" = "x"; then
-#     AC_MSG_ERROR([
-# *** OpenHpiUtils pkgconfig file wasn't found
-# *** we can't determine proper build flags without it
-# *** please check your installation
-# ])
-# fi
+HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
+if test "x$HPIUTILS_LIBS" = "x"; then
+    AC_MSG_ERROR([
+*** OpenHpiUtils pkgconfig file wasn't found
+*** we can't determine proper build flags without it
+*** please check your installation
+])
+fi
 
 LIBS=$HPI_LIBS
 # Checks for libraries
@@ -90,8 +90,8 @@
         have_hpiutils=yes
 # uncomment the 2 lines below when openhpiutils
 # has its own pkgconfig file 'openhpiutils.pc'
-#        HPIUTILS_FLAGS=`pkg-config --cflags openhpiutils`
-#        HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
+        HPIUTILS_FLAGS=`pkg-config --cflags openhpiutils`
+        HPIUTILS_LIBS=`pkg-config --libs openhpiutils`
     ],
     [OH_CHECK_FAIL(libopenhpiutils,openhpiutils-devel)])