configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27001
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27002
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27003

27004
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27006
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27007
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27008
fi
27009
27010
27011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27012
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27013
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27014
27015
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27016
27017
  LIBS="-llapack $LIBS"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27018
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27019
27020
27021
27022
  acx_atlas_ok=no
fi


27023
27024
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27025
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27026
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27027
27028
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27029
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27030
27031
27032
27033
27034
27035
27036
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27037
27038
27039
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27040
27041
27042
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27043
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27044
27045
27046
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27047
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27048
27049
27050
27051
27052
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27053
27054
27055
27056
27057
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27058
27059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27060
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27061
27062
27063
27064
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27066
27067
27068
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27069
27070
27071
27072
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27073
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27074
else
27075
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27076
27077
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27078
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27079
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27080

27081
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27083
27084
27085
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27086
27087
27088
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27089
27090
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27091
27092
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27093
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27094

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27095
27096
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27097
27098
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27099
27100
27101
27102
27103
27104
27105
        if test x$acx_atlas_ok = xyes; then
          ATLAS_LIBPATH="-L$atlas_def"
        else
          atlas_def=/usr/lib/atlas
          unset ac_cv_lib_lapack_clapack_dpotrf
          unset ac_cv_lib_cblas_cblas_dgemm
          acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27106

27107
27108
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27109
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27110
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27111
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27112
27113
27114
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27115
27116
27117
27118
27119
27120
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27121
27122
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27123
27124
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27125
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27126
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27127
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27128
27129
27130
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27131
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27132
27133
27134
27135
27136
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27137
27138
27139
27140
27141
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27142
27143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27144
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27145
27146
27147
27148
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27150
27151
27152
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27153
27154
27155
27156
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27157
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27158
else
27159
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27160
27161
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27162
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27163
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27164

27165
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27167
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27168
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27169
fi
27170
27171
27172
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27173
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27174
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27175
27176
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27177
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27178

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27179
27180
27181
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27182
27183


27184
27185
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27186
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27187
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27188
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27189
27190
27191
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27192
27193
27194
27195
27196
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27197
27198
27199
27200
27201
27202
27203
27204

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27205
27206
27207
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27208
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27209
27210
27211
27212
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27213
27214
27215
27216
27217
27218
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27219
27220
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27221
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27222
27223
27224
27225
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27226
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27227
27228
27229
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27230
27231
27232
27233
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27234
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27235
else
27236
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27237
27238
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27239
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27240
27241
fi

27242
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27243
27244
27245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27246
fi
27247
27248
27249
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27250
27251
27252
27253
27254
27255
27256
27257
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27258
27259
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27260
27261
27262
27263
27264
27265
27266
27267
          if test x$acx_atlas_ok = xyes; then
            ATLAS_LIBPATH="-L$atlas_def"
          else
            atlas_def=/usr/atlas
            unset ac_cv_lib_lapack_clapack_dpotrf
            unset ac_cv_lib_cblas_cblas_dgemm
            acx_atlas_ok=yes

27268
27269
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27270
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27271
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27272
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27273
27274
27275
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27276
27277
27278
27279
27280
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27281
27282
27283
27284
27285
27286
27287
27288

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27289
27290
27291
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27292
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27293
27294
27295
27296
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27297
27298
27299
27300
27301
27302
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27303
27304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27305
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27306
27307
27308
27309
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27311
27312
27313
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27314
27315
27316
27317
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27318
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27319
else
27320
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27321
27322
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27323
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27324
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27325

27326
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27327
27328
27329
27330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27331
27332
27333
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27345
27346
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27347
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27348
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27349
27350
27351
27352
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27353
27354
27355
27356
27357
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27358
27359
27360
27361
27362
27363
27364
27365

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27366
27367
27368
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27369
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27370
27371
27372
27373
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27374
27375
27376
27377
27378
27379
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27380
27381
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27382
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27383
27384
27385
27386
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27387
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27388
27389
27390
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27391
27392
27393
27394
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27395
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27396
else
27397
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27398
27399
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27400
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27401
27402
fi

27403
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27404
27405
27406
27407
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27408
27409
27410
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27411
27412
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27413
27414
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27415
27416
27417
27418
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27419
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431

            if test x$acx_atlas_ok = xyes; then
              ATLAS_LIBPATH="-L$atlas_def/lib"
            else
              ATLAS_ERROR="CBLAS/LAPack library files not found at usual locations!"
            fi
          fi
        fi
      fi
    fi
  else

27432
27433
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27434
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27435
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27436
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27437
27438
27439
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27440
27441
27442
27443
27444
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27445
27446
27447
27448
27449
27450
27451
27452

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27453
27454
27455
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27456
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27457
27458
27459
27460
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27461
27462
27463
27464
27465
27466
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27467
27468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27469
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27470
27471
27472
27473
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27474
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27475
27476
27477
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27478
27479
27480
27481
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27482
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27483
else
27484
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27485
27486
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27487
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27488
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27489

27490
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27491
27492
27493
27494
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27495
27496
27497
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27509
27510
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27511
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27512
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27513
27514
27515
27516
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27517
27518
27519
27520
27521
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27522
27523
27524
27525
27526
27527
27528
27529

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27530
27531
27532
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27533
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27534
27535
27536
27537
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27538
27539
27540
27541
27542
27543
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27544
27545
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27546
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27547
27548
27549
27550
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27551
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27552
27553
27554
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27555
27556
27557
27558
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27559
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27560
else
27561
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27562
27563
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27564
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27565
27566
fi

27567
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27568
27569
27570
27571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27572
27573
27574
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27575
27576
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27577
27578
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27579
27580
27581
27582
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27583
27584
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27585
27586
27587
27588
27589
27590
27591
    if test x$acx_atlas_ok = xyes; then
      ATLAS_LIBPATH="-L$atlas_libdir"
    else
      unset ac_cv_lib_lapack_clapack_dpotrf
      unset ac_cv_lib_cblas_cblas_dgemm
      acx_atlas_ok=yes

27592
27593
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27594
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27595
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27596
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27597
27598
27599
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir/lib -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27600
27601
27602
27603
27604
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27605
27606
27607
27608
27609
27610
27611
27612

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27613
27614
27615
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27616
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27617
27618
27619
27620
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27621
27622
27623
27624
27625
27626
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27627
27628
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27629
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27630
27631
27632
27633
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27634
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27635
27636
27637
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27638
27639
27640
27641
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27642
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27643
else
27644
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27645
27646
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27647
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27648
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27649

27650
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27651
27652
27653
27654
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27655
27656
27657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27669
27670
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27671
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27672
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27673
27674
27675
27676
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir/lib -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27677
27678
27679
27680
27681
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27682
27683
27684
27685
27686
27687
27688
27689

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27690
27691
27692
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27693
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27694
27695
27696
27697
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27698
27699
27700
27701
27702
27703
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27704
27705
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27706
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27707
27708
27709
27710
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27711
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27712
27713
27714
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27715
27716
27717
27718
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27719
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27720
else
27721
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27722
27723
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27724
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27725
27726
fi

27727
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27728
27729
27730
27731
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27732
27733
27734
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27735
27736
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27737
27738
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27739
27740
27741
27742
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27743
27744
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
      if test x$acx_atlas_ok = xyes; then
        ATLAS_LIBPATH="-L$atlas_libdir/lib"
      else
        ATLAS_ERROR="CBLAS/LAPack library files not found in $atlas_libdir!"
      fi
    fi
  fi
  LIBS="$OLIBS"
fi




if test x"$acx_atlas_ok" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS 1
_ACEOF

  if test x$use_pthreads = xyes; then
27765
27766
    { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lptcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27767
if test "${ac_cv_lib_ptcblas_cblas_dgemm+set}" = set; then
27768
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27769
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27770
27771
27772
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27773
27774
27775
27776
27777
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27778
27779
27780
27781
27782
27783
27784
27785

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27786
27787
27788
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27789
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27790
27791
27792
27793
27794
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27795
27796
27797
27798
27799
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27800
27801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27802
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27803
27804
27805
27806
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27807
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27808
27809
27810
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27811
27812
27813
27814
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27815
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27816
else
27817
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27818
27819
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27820
	ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27821
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27822

27823
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27825
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27826
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27827
fi
27828
27829
27830
27831
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_ptcblas_cblas_dgemm" = x""yes; then
  acx_atlast_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27832
else
27833
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27834
27835
fi

27836
    if test x$acx_atlast_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27837
27838
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27839
27840


Emmanuel Bertin's avatar
Emmanuel Bertin committed
27841
27842
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27843
27844
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27845
27846
      use_atlas=yes
    else
27847
27848
27849
27850
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
      LIBS="$OLIBS"

      ATLAS_WARN="CBLAS/LAPack was compiled without multithreading support!"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27851

27852
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
    fi
  else
    ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
    LIBS="$OLIBS"

    use_atlas=yes
  fi
else

  use_atlas=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27864

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27865

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27866
27867
if test "$use_atlas" = "yes"; then
  LIBS="$ATLAS_LIB $LIBS"
27868
27869
27870
27871
  if test "$ATLAS_WARN" != ""; then
    { $as_echo "$as_me:$LINENO: WARNING: $ATLAS_WARN" >&5
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27872
else
27873
27874
  { { $as_echo "$as_me:$LINENO: error: $ATLAS_ERROR Exiting." >&5
$as_echo "$as_me: error: $ATLAS_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27875
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27876
27877
27878
fi

# Link with gprof option
27879
27880
if test "$enable_gprof" = "yes"; then
  if test "$enable_icc" = "yes"; then
27881
    AM_CFLAGS="$AM_CFLAGS -pq"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27882
  else
27883
    AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27884
  fi
27885
  enable_best_link="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27886
27887
fi

27888
# "Best" linking option
27889
if test "$enable_best_link" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27890
  AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27891
27892
fi

27893
27894
27895



Emmanuel Bertin's avatar
Emmanuel Bertin committed
27896
27897

# Display compiler and linker flags
27898
27899
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
27900
27901
27902
27903
{ $as_echo "$as_me:$LINENO: result: Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&5
$as_echo "Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&6; }
{ $as_echo "$as_me:$LINENO: result: Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&5
$as_echo "Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&6; }
27904
27905
27906
27907
{ $as_echo "$as_me:$LINENO: result: Default XSLT URL: $xsl_url" >&5
$as_echo "Default XSLT URL: $xsl_url" >&6; }
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27908

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27909
ac_config_files="$ac_config_files Makefile src/Makefile src/fits/Makefile src/levmar/Makefile src/wcs/Makefile man/Makefile tests/Makefile sextractor.spec man/sex.1"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922



test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27923
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27924
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27925
27926
27927
27928
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27929
27930
27931
27932
27933
27934
27935
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27936
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27937
Usually this means the macro was only invoked conditionally." >&5
27938
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27939
27940
27941
27942
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27943
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27944
Usually this means the macro was only invoked conditionally." >&5
27945
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27946
27947
27948
27949
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27950
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27951
Usually this means the macro was only invoked conditionally." >&5
27952
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27953
27954
27955
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27956
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27957
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27958
Usually this means the macro was only invoked conditionally." >&5
27959
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27960
27961
27962
27963
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
27964
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27965
Usually this means the macro was only invoked conditionally." >&5
27966
$as_echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27967
27968
27969
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27970
27971

: ${CONFIG_STATUS=./config.status}
27972
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27973
27974
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27975
27976
27977
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

27990
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27991
27992
27993
27994
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27995
27996
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27997
27998
27999
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
28000
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
For faster browsing, not all history is shown. View entire blame