From: Michal Nowak Date: Thu, 23 Jul 2026 09:18:34 +0000 (+0200) Subject: Restore SMF support in the build system X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=253832f7302816252460a408e3aaa48e47a0385e;p=thirdparty%2Fbind9.git Restore SMF support in the build system libscf detection (AC_CHECK_LIB(scf, smf_enable_instance)) was lost in the automake rewrite (978c7b2e89aa) and was not added back when the build system was replaced with meson, so HAVE_LIBSCF was never defined and the Solaris SMF code in bin/named was dead code. Detect libscf on SunOS hosts and link named against it. Assisted-by: Claude:claude-fable-5 --- diff --git a/meson.build b/meson.build index a8981dc06ce..de685524a63 100644 --- a/meson.build +++ b/meson.build @@ -941,6 +941,13 @@ if cap_dep.found() config.set('HAVE_LIBCAP', 1) endif +## libscf (Solaris SMF) +scf_dep = null_dep +if host_machine.system() == 'sunos' + scf_dep = cc.find_library('scf', has_headers: 'libscf.h', required: false) + config.set('HAVE_LIBSCF', scf_dep.found()) +endif + ## IDN idn2_dep = null_dep if idn_opt.allowed() @@ -1758,6 +1765,7 @@ executable( lmdb_dep, nghttp2_dep, ngtcp2_dep, + scf_dep, xml2_dep, zlib_dep, @@ -2175,6 +2183,7 @@ summary( 'libcap': cap_dep.version(), 'libedit': edit_dep.version(), 'libidn2': idn2_dep.version(), + 'libscf': scf_dep.found(), 'libxml2': xml2_dep.version(), 'LMDB': lmdb_dep.version(), 'MaxMindDB': maxminddb_dep.version(),