From 8f9ecd1afb7a7cbe97da8d747d7e61f8669fa5aa Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Wed, 4 Mar 2026 16:39:53 -0800 Subject: [PATCH] Close PKG_CHECK_MODULES with a no-op failure action and use a separate AS_IF to conditionally run the manual search fallback --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5ed7c1b70a..01a3ac80ae 100644 --- a/configure.ac +++ b/configure.ac @@ -3031,8 +3031,10 @@ AS_IF([test "x$with_cryptoauthlib" != "xno"], [ LDFLAGS="$CRYPTOAUTHLIB_LIBS $LDFLAGS" LIBS="$CRYPTOAUTHLIB_LIBS $LIBS" cryptoauthlib_found="pkg-config" - ], [ - # Method 2: Manual search + ], [:]) + + # Method 2: Manual search if pkg-config failed + AS_IF([test "x$cryptoauthlib_found" = "xno"], [ AS_IF([test "x$with_cryptoauthlib" = "xyes"], [ search_dirs="/usr /usr/local" ], [