Revisão | 014c888d8ac0fc60a374b03926e1438596aaa520 (tree) |
---|---|
Hora | 2012-12-26 18:10:41 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Revert "Define MKL_INT=int64_t if ILP64 version of MKL is used. #28588"
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1214 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -116,13 +116,12 @@ if test $ax_blas_ok = no; then | ||
116 | 116 | # 64 bit |
117 | 117 | if test $host_cpu = x86_64; then |
118 | 118 | AC_CHECK_LIB(mkl_gf_ilp64, $sgemm, |
119 | - [ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lpthread"] | |
120 | - [AC_DEFINE([MKL_INT], [int64_t], [Define this macro if you use 64bit int in mkl libarary])],, | |
119 | + [ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lpthread"],, | |
121 | 120 | [-lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lpthread]) |
122 | 121 | # 32 bit |
123 | 122 | elif test $host_cpu = i686; then |
124 | 123 | AC_CHECK_LIB(mkl_gf, $sgemm, |
125 | - [ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread" ],, | |
124 | + [ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread"],, | |
126 | 125 | [-lmkl_gf -lmkl_sequential -lmkl_core -lpthread]) |
127 | 126 | fi |
128 | 127 | # MKL for other compilers (Intel, PGI, ...?) |
@@ -130,8 +129,7 @@ if test $ax_blas_ok = no; then | ||
130 | 129 | # 64-bit |
131 | 130 | if test $host_cpu = x86_64; then |
132 | 131 | AC_CHECK_LIB(mkl_intel_ilp64, $sgemm, |
133 | - [ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread"] | |
134 | - [AC_DEFINE([MKL_INT], [int64_t], [Define this macro if you use 64bit int in mkl libarary])],, | |
132 | + [ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread"],, | |
135 | 133 | [-lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread]) |
136 | 134 | # 32-bit |
137 | 135 | elif test $host_cpu = i686; then |
@@ -149,7 +147,7 @@ fi | ||
149 | 147 | # BLAS in OpenBLAS library? (http://xianyi.github.com/OpenBLAS/) |
150 | 148 | if test $ax_blas_ok = no; then |
151 | 149 | AC_CHECK_LIB(openblas, $sgemm, [ax_blas_ok=yes |
152 | - BLAS_LIBS="-lopenblas"]) | |
150 | + BLAS_LIBS="-lopenblas"]) | |
153 | 151 | fi |
154 | 152 | |
155 | 153 | # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) |
@@ -198,7 +196,7 @@ if test $ax_blas_ok = no; then | ||
198 | 196 | AC_CHECK_LIB(sunmath, acosp, |
199 | 197 | [AC_CHECK_LIB(sunperf, $sgemm, |
200 | 198 | [BLAS_LIBS="-xlic_lib=sunperf -lsunmath" |
201 | - ax_blas_ok=yes],[],[-lsunmath])]) | |
199 | + ax_blas_ok=yes],[],[-lsunmath])]) | |
202 | 200 | fi |
203 | 201 | fi |
204 | 202 |
@@ -210,7 +208,7 @@ fi | ||
210 | 208 | # BLAS in SGIMATH library? |
211 | 209 | if test $ax_blas_ok = no; then |
212 | 210 | AC_CHECK_LIB(complib.sgimath, $sgemm, |
213 | - [ax_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"]) | |
211 | + [ax_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"]) | |
214 | 212 | fi |
215 | 213 | |
216 | 214 | # BLAS in IBM ESSL library? (requires generic BLAS lib, too) |
@@ -232,10 +230,10 @@ LIBS="$ax_blas_save_LIBS" | ||
232 | 230 | |
233 | 231 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
234 | 232 | if test x"$ax_blas_ok" = xyes; then |
235 | - ifelse([$1],,AC_DEFINE(HAVE_BLAS,1,[Define if you have a BLAS library.]),[$1]) | |
236 | - : | |
233 | + ifelse([$1],,AC_DEFINE(HAVE_BLAS,1,[Define if you have a BLAS library.]),[$1]) | |
234 | + : | |
237 | 235 | else |
238 | - ax_blas_ok=no | |
239 | - $2 | |
236 | + ax_blas_ok=no | |
237 | + $2 | |
240 | 238 | fi |
241 | 239 | ])dnl AX_BLAS |