diff options
Diffstat (limited to 'src/transport/Makefile.am')
-rw-r--r-- | src/transport/Makefile.am | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 0f5b2e8be..178ecc737 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -93,11 +93,19 @@ if LINUX | |||
93 | test_quota_compliance_wlan_asymmetric | 93 | test_quota_compliance_wlan_asymmetric |
94 | endif | 94 | endif |
95 | 95 | ||
96 | if HAVE_SUDO | ||
97 | SUDO_OR_DOAS_BINARY= $(SUDO_BINARY) | ||
98 | else | ||
99 | if HAVE_DOAS_BINARY | ||
100 | SUDO_OR_DOAS_BINARY= $(DOAS_BINARY) | ||
101 | endif | ||
102 | endif | ||
103 | |||
96 | if LINUX | 104 | if LINUX |
97 | install-exec-hook: | 105 | install-exec-hook: |
98 | $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true | 106 | $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true |
99 | if HAVE_LIBBLUETOOTH | 107 | if HAVE_LIBBLUETOOTH |
100 | $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true | 108 | $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true |
101 | endif | 109 | endif |
102 | else | 110 | else |
103 | install-exec-hook: | 111 | install-exec-hook: |