Skip to contentSkip to conversation

configure.ac: Fix --disable-cups

bluez/bluez Lars Wendler 2 participants 2 messages Apr 16, 2024 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

or else we get:
configure: error: conditional "CUPS_SERVERBIN" was never defined. Usually this means the macro was only invoked conditionally.

---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
configure.ac +4 -4
index 9ebc250cf..047ec1a7f 100644
@@ -249,12 +249,12 @@ AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no")
 if (test "${enable_cups}" != "no"); then
 	AC_MSG_CHECKING([cups directory])
 	cups_serverbin=`$PKG_CONFIG cups --variable=cups_serverbin`
-	AM_CONDITIONAL(CUPS_SERVERBIN, test "${cups_serverbin}" != "")
-	if (test "${cups_serverbin}" != ""); then
-		AC_SUBST(CUPS_SERVERBIN, ${cups_serverbin})
-	fi
 	AC_MSG_RESULT([${cups_serverbin}])
 fi
+AM_CONDITIONAL(CUPS_SERVERBIN, test "${cups_serverbin}" != "")
+AS_IF([test "${cups_serverbin}" != ""],[
+	AC_SUBST(CUPS_SERVERBIN, ${cups_serverbin})
+])
 
 AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh],
 		[enable Mesh profile support]), [enable_mesh=${enableval}])

--
2.44.0

#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=844910

---Test result---

Test Summary:

CheckPatch                    PASS      0.23 seconds
GitLint                       PASS      0.19 seconds
BuildEll                      PASS      24.48 seconds
BluezMake                     PASS      1689.88 seconds
MakeCheck                     PASS      12.81 seconds
MakeDistcheck                 PASS      178.27 seconds
CheckValgrind                 PASS      248.88 seconds
CheckSmatch                   PASS      352.63 seconds
bluezmakeextell               PASS      119.54 seconds
IncrementalBuild              PASS      1451.34 seconds
ScanBuild                     PASS      1022.03 seconds

---
Regards,
Linux Bluetooth