--- octave-2.1.46/configure.orig Sat Mar 1 08:28:09 2003 +++ octave-2.1.46/configure Sat Mar 1 08:31:23 2003 @@ -8448,16 +8448,13 @@ LIBS="$save_LIBS" fi -# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) +# BLAS in Apple vecLib framework? (Mac OS X) if test $acx_blas_ok = no; then - echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5 -echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6 -if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-latlas $LIBS" -cat >conftest.$ac_ext <<_ACEOF + vlib_flags="-framework vecLib" + save_LIBS="$LIBS"; LIBS="$vlib_flags $LIBS" + echo "$as_me:$LINENO: checking for $sgemm in $vlib_flags" >&5 +echo $ECHO_N "checking for $sgemm in $vlib_flags... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF @@ -8471,7 +8468,7 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char ATL_xerbla (); +char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -8481,7 +8478,7 @@ int main () { -ATL_xerbla (); +$sgemm (); ; return 0; } @@ -8498,27 +8495,29 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_atlas_ATL_xerbla=yes + acx_blas_ok=yes; BLAS_LIBS="$vlib_flags" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_atlas_ATL_xerbla=no +BLAS_LIBS="" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + echo "$as_me:$LINENO: result: $acx_blas_ok" >&5 +echo "${ECHO_T}$acx_blas_ok" >&6 + LIBS="$save_LIBS" fi -echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 -echo "${ECHO_T}$ac_cv_lib_atlas_ATL_xerbla" >&6 -if test $ac_cv_lib_atlas_ATL_xerbla = yes; then - as_ac_Lib=`echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $sgemm in -lf77blas" >&5 -echo $ECHO_N "checking for $sgemm in -lf77blas... $ECHO_C" >&6 + +# BLAS in PhiPACK libraries? (requires generic BLAS lib, too) +if test $acx_blas_ok = no; then + as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 +echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6 if eval "test \"\${$as_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lf77blas -latlas $LIBS" +LIBS="-lblas $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -8573,13 +8572,14 @@ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 if test `eval echo '${'$as_ac_Lib'}'` = yes; then - echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5 -echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6 -if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then + as_ac_Lib=`echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $dgemm in -ldgemm" >&5 +echo $ECHO_N "checking for $dgemm in -ldgemm... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lcblas -lf77blas -latlas $LIBS" +LIBS="-ldgemm -lblas $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -8594,7 +8594,7 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char cblas_dgemm (); +char $dgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -8604,7 +8604,7 @@ int main () { -cblas_dgemm (); +$dgemm (); ; return 0; } @@ -8621,36 +8621,28 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_cblas_cblas_dgemm=yes + eval "$as_ac_Lib=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_cblas_cblas_dgemm=no +eval "$as_ac_Lib=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 -echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6 -if test $ac_cv_lib_cblas_cblas_dgemm = yes; then - acx_blas_ok=yes - BLAS_LIBS="-lcblas -lf77blas -latlas" -fi - -fi - -fi - -fi - -# BLAS in Apple vecLib framework? (Mac OS X) -if test $acx_blas_ok = no; then - vlib_flags="-framework vecLib" - save_LIBS="$LIBS"; LIBS="$vlib_flags $LIBS" - echo "$as_me:$LINENO: checking for $sgemm in $vlib_flags" >&5 -echo $ECHO_N "checking for $sgemm in $vlib_flags... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then + as_ac_Lib=`echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $sgemm in -lsgemm" >&5 +echo $ECHO_N "checking for $sgemm in -lsgemm... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsgemm -lblas $LIBS" +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF @@ -8691,29 +8683,37 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - acx_blas_ok=yes; BLAS_LIBS="$vlib_flags" + eval "$as_ac_Lib=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -BLAS_LIBS="" +eval "$as_ac_Lib=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - echo "$as_me:$LINENO: result: $acx_blas_ok" >&5 -echo "${ECHO_T}$acx_blas_ok" >&6 - LIBS="$save_LIBS" +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then + acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" fi -# BLAS in PhiPACK libraries? (requires generic BLAS lib, too) +fi + +fi + +fi + +# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) if test $acx_blas_ok = no; then - as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 -echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then + echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5 +echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6 +if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lblas $LIBS" +LIBS="-latlas $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -8728,7 +8728,7 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char $sgemm (); +char ATL_xerbla (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -8738,7 +8738,7 @@ int main () { -$sgemm (); +ATL_xerbla (); ; return 0; } @@ -8755,27 +8755,27 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + ac_cv_lib_atlas_ATL_xerbla=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" +ac_cv_lib_atlas_ATL_xerbla=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - as_ac_Lib=`echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $dgemm in -ldgemm" >&5 -echo $ECHO_N "checking for $dgemm in -ldgemm... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 +echo "${ECHO_T}$ac_cv_lib_atlas_ATL_xerbla" >&6 +if test $ac_cv_lib_atlas_ATL_xerbla = yes; then + as_ac_Lib=`echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $sgemm in -lf77blas" >&5 +echo $ECHO_N "checking for $sgemm in -lf77blas... $ECHO_C" >&6 if eval "test \"\${$as_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldgemm -lblas $LIBS" +LIBS="-lf77blas -latlas $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -8790,7 +8790,7 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char $dgemm (); +char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -8800,7 +8800,7 @@ int main () { -$dgemm (); +$sgemm (); ; return 0; } @@ -8830,14 +8830,13 @@ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 if test `eval echo '${'$as_ac_Lib'}'` = yes; then - as_ac_Lib=`echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $sgemm in -lsgemm" >&5 -echo $ECHO_N "checking for $sgemm in -lsgemm... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Lib+set}\" = set"; then + echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5 +echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6 +if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lsgemm -lblas $LIBS" +LIBS="-lcblas -lf77blas -latlas $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -8852,7 +8851,7 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char $sgemm (); +char cblas_dgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" @@ -8862,7 +8861,7 @@ int main () { -$sgemm (); +cblas_dgemm (); ; return 0; } @@ -8879,20 +8878,21 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_Lib=yes" + ac_cv_lib_cblas_cblas_dgemm=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_Lib=no" +ac_cv_lib_cblas_cblas_dgemm=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" +echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 +echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6 +if test $ac_cv_lib_cblas_cblas_dgemm = yes; then + acx_blas_ok=yes + BLAS_LIBS="-lcblas -lf77blas -latlas" fi fi