diff --git a/extra/math/blas/config/config.factor b/extra/math/blas/config/config.factor index 4c9f785284..35ac310bc3 100644 --- a/extra/math/blas/config/config.factor +++ b/extra/math/blas/config/config.factor @@ -1,4 +1,5 @@ -USING: alien.fortran combinators kernel namespaces system ; +USING: alien.fortran combinators kernel math namespaces +sequences system system-info ; IN: math.blas.config SYMBOLS: blas-library blas-fortran-abi deploy-blas? ; @@ -13,7 +14,17 @@ blas-library [ blas-fortran-abi [ { - { [ os macosx? ] [ intel-unix-abi ] } + { [ os macosx? cpu x86.32? and ] [ intel-unix-abi ] } + { [ os macosx? cpu x86.64? and ] + [ + os-version second { + { [ dup 7 >= ] [ f2c-abi ] } + { [ dup 6 = ] [ "The libblas.dylib included in Mac OS X 10.6 is incompatible with Factor. To use the math.blas bindings y +ou will need to install a third-party BLAS library and configure Factor. See `\"math.blas.config\" about` for more information." ] } + [ intel-unix-abi ] + } cond nip + ] + } { [ os windows? cpu x86.32? and ] [ f2c-abi ] } { [ os windows? cpu x86.64? and ] [ gfortran-abi ] } ! { [ os freebsd? ] [ gfortran-abi ] }