Skip to content

Commit 97a7359

Browse files
committed
Close PKG_CHECK_MODULES with a no-op failure action and use a separate AS_IF to conditionally run the manual search fallback
1 parent f6b7144 commit 97a7359

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,8 +3137,10 @@ AS_IF([test "x$with_cryptoauthlib" != "xno"], [
31373137
LDFLAGS="$CRYPTOAUTHLIB_LIBS $LDFLAGS"
31383138
LIBS="$CRYPTOAUTHLIB_LIBS $LIBS"
31393139
cryptoauthlib_found="pkg-config"
3140-
], [
3141-
# Method 2: Manual search
3140+
], [:])
3141+
3142+
# Method 2: Manual search if pkg-config failed
3143+
AS_IF([test "x$cryptoauthlib_found" = "xno"], [
31423144
AS_IF([test "x$with_cryptoauthlib" = "xyes"], [
31433145
search_dirs="/usr /usr/local"
31443146
], [

0 commit comments

Comments
 (0)