From: Arran Cudbard-Bell Date: Fri, 26 May 2023 23:18:24 +0000 (-0400) Subject: macos: Search in the new ARM homebrew location by default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bac82d85ca1a257c7586cfefb0bf441e2c15976;p=thirdparty%2Ffreeradius-server.git macos: Search in the new ARM homebrew location by default --- diff --git a/m4/ax_smart_try.m4 b/m4/ax_smart_try.m4 index ae78170b39c..642000c909b 100644 --- a/m4/ax_smart_try.m4 +++ b/m4/ax_smart_try.m4 @@ -54,7 +54,7 @@ old_LIBS="$LIBS" old_CPPFLAGS="$CPPFLAGS" smart_lib= smart_ldflags= -smart_lib_dir="/usr/local/lib /opt/lib" +smart_lib_dir="/usr/local/lib /opt/lib /opt/homebrew/lib" dnl # dnl # Try first any user-specified directory, otherwise we may pick up @@ -69,6 +69,7 @@ for try in $smart_try_dir; do [ smart_lib="-l$1" smart_ldflags="-L$try -Wl,-rpath,$try" + smart_ld_found="$try" AC_MSG_RESULT(yes) break ], @@ -136,7 +137,7 @@ ac_safe=`echo "$1" | sed 'y%./+-%__pm%'` old_CPPFLAGS="$CPPFLAGS" smart_include= dnl # The default directories we search in (in addition to the compilers search path) -smart_include_dir="/usr/local/include /opt/include" +smart_include_dir="/usr/local/include /opt/include /opt/homebrew/include" dnl # Our local versions _smart_try_dir=