Support gmake-3 and gmake-4
[openresolv] / unbound.in
index 4ee0da7202633fac6d14dfa697495c648c274bab..633c7f0dffc1f3feb8d929fbfbac7a026a6024f6 100644 (file)
@@ -29,7 +29,7 @@
 [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
 . "@SYSCONFDIR@/resolvconf.conf" || exit 1
 [ -z "$unbound_conf" ] && exit 0
-[ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
+[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
 NL="
 "
 
@@ -60,7 +60,7 @@ fi
 if type config_mkdirs >/dev/null 2>&1; then
        config_mkdirs "$unbound_conf"
 else
-       @PREFIX@/sbin/resolvconf -D "$unbound_conf"
+       @SBINDIR@/resolvconf -D "$unbound_conf"
 fi
 
 if [ ! -f "$unbound_conf" ] || \