From 2deded362ee052564e7359d53c81973c16b18e72 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 26 Feb 2024 20:00:43 +0000 Subject: Configure: added support for Homebrew on Apple Silicon. Signed-off-by: Piotr Sikora --- auto/lib/libgd/conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'auto/lib/libgd') diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf index 678639767..07f565677 100644 --- a/auto/lib/libgd/conf +++ b/auto/lib/libgd/conf @@ -65,6 +65,23 @@ if [ $ngx_found = no ]; then fi +if [ $ngx_found = no ]; then + + # Homebrew on Apple Silicon + + ngx_feature="GD library in /opt/homebrew/" + ngx_feature_path="/opt/homebrew/include" + + if [ $NGX_RPATH = YES ]; then + ngx_feature_libs="-R/opt/homebrew/lib -L/opt/homebrew/lib -lgd" + else + ngx_feature_libs="-L/opt/homebrew/lib -lgd" + fi + + . auto/feature +fi + + if [ $ngx_found = yes ]; then CORE_INCS="$CORE_INCS $ngx_feature_path" -- cgit