Skip to content

Conversation

@0xfffffffa
Copy link

Fix: configure.ac fails to detect libcurl on macOS

This PR updates configure.ac to properly detect libcurl on macOS systems (e.g., using Homebrew), resolving the following error seen during ./configure:

./configure: line XXXX: syntax error near unexpected token ','
LIBCURL_CHECK_CONFIG(, 7.15.2, , ...)

Changes:
• Added AC_CONFIG_MACRO_DIRS([m4]) to recognize local m4 macros
• Copied libcurl.m4 into m4/ from Homebrew install path
• Ran autoreconf -fvi to regenerate configure scripts correctly
• Confirmed ./configure && make now succeeds on macOS (tested on Apple Silicon with Homebrew-installed curl)

Why it matters:
Without this fix, cpuminer is not buildable out of the box on macOS — which is common for developers and contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant