[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 02/02: meson: detect ip and ifconfig binaries
From: |
gnunet |
Subject: |
[gnunet] 02/02: meson: detect ip and ifconfig binaries |
Date: |
Sat, 14 Oct 2023 17:09:36 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit e20889e44f38f0c226995a20e395efd4150a08a6
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Oct 14 17:09:30 2023 +0200
meson: detect ip and ifconfig binaries
---
meson.build | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meson.build b/meson.build
index f411a71aa..3af63cecc 100644
--- a/meson.build
+++ b/meson.build
@@ -189,6 +189,16 @@ if gopt_bin.found()
add_project_arguments('-DHAVE_GETOPT_BINARY='+gopt_bin.full_path(), language
: 'c')
endif
+ifconfig_bin = find_program('ifconfig', '/usr/sbin/ifconfig', required : false)
+if ifconfig_bin.found()
+ cdata.set_quoted('IFCONFIG', ifconfig_bin.full_path())
+endif
+
+ip_bin = find_program('ip', '/usr/sbin/ip', required : false)
+if ip_bin.found()
+ cdata.set_quoted('PATH_TO_IP', ip_bin.full_path())
+endif
+
pkgc_bin = find_program('pkg-config', '/usr/bin/pkg-config', required : false)
if pkgc_bin.found()
add_project_arguments('-DHAVE_PKG_CONFIG', language : 'c')
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.