From c7ba4f5384bad446be7bf392539576dd1c572bd2 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Fri, 9 May 2025 22:02:14 +0200 Subject: [PATCH] Fix --without-cxx-binding being ignored Do not build the C++ bindings if the configure script was called with the option --without-cxx-binding. --- c++/Makefile.am | 3 +++ configure.ac | 1 + 2 files changed, 4 insertions(+) diff --git a/c++/Makefile.am b/c++/Makefile.am index be2b80821..c01f91368 100644 --- a/c++/Makefile.am +++ b/c++/Makefile.am @@ -1,3 +1,4 @@ +if ENABLE_CXX lib_LTLIBRARIES = libhamlib++.la libhamlib___la_SOURCES = rigclass.cc rotclass.cc ampclass.cc @@ -15,3 +16,5 @@ TESTS = $(check_PROGRAMS) $(top_builddir)/src/libhamlib.la: $(MAKE) -C $(top_builddir)/src/ libhamlib.la + +endif diff --git a/configure.ac b/configure.ac index ea06ba611..4a453abdb 100644 --- a/configure.ac +++ b/configure.ac @@ -560,6 +560,7 @@ AC_MSG_RESULT([$cf_with_cxx_binding]) AS_IF([test x"${cf_with_cxx_binding}" = "xyes"], [BINDINGS="${BINDINGS} c++"]) +AM_CONDITIONAL([ENABLE_CXX], [test x"${cf_with_cxx_binding}" = "xyes"]) dnl Check if perl-binding is wanted, default is to not build it