different SUSE versions need different path. OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=10
18 lines
694 B
Diff
18 lines
694 B
Diff
Index: nut-2.6.0/m4/nut_config_libhal.m4
|
|
===================================================================
|
|
--- nut-2.6.0.orig/m4/nut_config_libhal.m4
|
|
+++ nut-2.6.0/m4/nut_config_libhal.m4
|
|
@@ -71,7 +71,11 @@ if test -z "${nut_have_config_libhal_see
|
|
dnl As per HAL spec, §5 Callouts addon install path: $libdir/hal
|
|
HAL_CALLOUTS_PATH="`pkg-config --silence-errors --variable=libexecdir hal 2>/dev/null`"
|
|
if test "$?" != "0" -o -z "${HAL_CALLOUTS_PATH}"; then
|
|
- HAL_CALLOUTS_PATH="${libdir}/hal"
|
|
+ if test -d "${prefix}/lib/hal"; then
|
|
+ HAL_CALLOUTS_PATH="${prefix}/lib/hal"
|
|
+ else
|
|
+ HAL_CALLOUTS_PATH="${libdir}/hal"
|
|
+ fi
|
|
fi
|
|
])
|
|
AC_MSG_RESULT(${HAL_CALLOUTS_PATH})
|