File nut-hal.patch of Package nut

--- m4/nut_check_libhal.m4
+++ m4/nut_check_libhal.m4
@@ -79,6 +79,11 @@
    if (test -z "$HAL_CALLOUTS_PATH")
    then
      # fallback to detecting the right path
+     if (test -d "${prefix}/lib/hal")
+     then
+       HAL_CALLOUTS_PATH="${prefix}/lib/hal"
+	     AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
+     else
      if (test -d "${libdir}/hal")
      then
        # For Debian
@@ -95,6 +100,7 @@
 	     AC_MSG_RESULT(using default (${HAL_CALLOUTS_PATH}))
        fi
      fi
+     fi
    else
 	   AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
    fi
openSUSE Build Service is sponsored by