configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27001

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27002
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27003
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27004

27005
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27006
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27007
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27008
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27009
fi
27010
27011
27012
{ $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
27013
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27014
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27015
27016
_ACEOF

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

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


27024
27025
{ $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
27026
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27027
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27028
27029
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27030
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27031
27032
27033
27034
27035
27036
27037
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
27038
27039
27040
/* 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
27041
27042
27043
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27044
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27045
27046
27047
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27048
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27049
27050
27051
27052
27053
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27054
27055
27056
27057
27058
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27059
27060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27061
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27062
27063
27064
27065
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27066
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27067
27068
27069
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27070
27071
27072
27073
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27074
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27075
else
27076
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27077
27078
sed 's/^/| /' conftest.$ac_ext >&5

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

27082
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27083
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27084
27085
27086
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27087
27088
27089
{ $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
27090
27091
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27092
27093
_ACEOF

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27100
27101
27102
27103
27104
27105
27106
        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
27107

27108
27109
{ $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
27110
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27111
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27112
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27113
27114
27115
  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
27116
27117
27118
27119
27120
27121
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

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

27166
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27168
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27169
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27170
fi
27171
27172
27173
{ $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
27174
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27175
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27176
27177
_ACEOF

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

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


27185
27186
{ $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
27187
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27188
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27189
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27190
27191
27192
  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
27193
27194
27195
27196
27197
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27198
27199
27200
27201
27202
27203
27204
27205

/* 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
27206
27207
27208
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27209
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27210
27211
27212
27213
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27214
27215
27216
27217
27218
27219
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
27220
27221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27222
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27223
27224
27225
27226
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27227
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27228
27229
27230
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27231
27232
27233
27234
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27235
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27236
else
27237
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27238
27239
sed 's/^/| /' conftest.$ac_ext >&5

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

27243
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27244
27245
27246
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
27247
fi
27248
27249
27250
{ $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
27251
27252
27253
27254
27255
27256
27257
27258
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27261
27262
27263
27264
27265
27266
27267
27268
          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

27269
27270
{ $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
27271
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27272
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27273
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27274
27275
27276
  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
27277
27278
27279
27280
27281
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27282
27283
27284
27285
27286
27287
27288
27289

/* 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
27290
27291
27292
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27293
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27294
27295
27296
27297
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27298
27299
27300
27301
27302
27303
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
27304
27305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27306
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27307
27308
27309
27310
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27312
27313
27314
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27315
27316
27317
27318
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27319
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27320
else
27321
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27322
27323
sed 's/^/| /' conftest.$ac_ext >&5

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

27327
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27328
27329
27330
27331
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
27332
27333
27334
{ $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
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27346
27347
{ $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
27348
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27349
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27350
27351
27352
27353
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
27354
27355
27356
27357
27358
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27359
27360
27361
27362
27363
27364
27365
27366

/* 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
27367
27368
27369
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27370
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27371
27372
27373
27374
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27375
27376
27377
27378
27379
27380
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
27381
27382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27383
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27384
27385
27386
27387
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27388
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27389
27390
27391
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27392
27393
27394
27395
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27396
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27397
else
27398
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27399
27400
sed 's/^/| /' conftest.$ac_ext >&5

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

27404
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27405
27406
27407
27408
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
27409
27410
27411
{ $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
27412
27413
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27414
27415
_ACEOF

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

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

            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

27433
27434
{ $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
27435
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27436
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27437
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27438
27439
27440
  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
27441
27442
27443
27444
27445
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27446
27447
27448
27449
27450
27451
27452
27453

/* 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
27454
27455
27456
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27457
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27458
27459
27460
27461
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27462
27463
27464
27465
27466
27467
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
27468
27469
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27470
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27471
27472
27473
27474
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27475
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27476
27477
27478
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27479
27480
27481
27482
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27483
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27484
else
27485
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27486
27487
sed 's/^/| /' conftest.$ac_ext >&5

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

27491
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27492
27493
27494
27495
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
27496
27497
27498
{ $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
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27510
27511
{ $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
27512
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27513
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27514
27515
27516
27517
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
27518
27519
27520
27521
27522
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27523
27524
27525
27526
27527
27528
27529
27530

/* 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
27531
27532
27533
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27534
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27535
27536
27537
27538
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27539
27540
27541
27542
27543
27544
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
27545
27546
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27547
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27548
27549
27550
27551
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27552
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27553
27554
27555
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27556
27557
27558
27559
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27560
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27561
else
27562
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27563
27564
sed 's/^/| /' conftest.$ac_ext >&5

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

27568
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27569
27570
27571
27572
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
27573
27574
27575
{ $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
27576
27577
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27578
27579
_ACEOF

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27586
27587
27588
27589
27590
27591
27592
    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

27593
27594
{ $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
27595
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27596
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27597
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27598
27599
27600
  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
27601
27602
27603
27604
27605
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27606
27607
27608
27609
27610
27611
27612
27613

/* 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
27614
27615
27616
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27617
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27618
27619
27620
27621
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27622
27623
27624
27625
27626
27627
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
27628
27629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27630
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27631
27632
27633
27634
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27635
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27636
27637
27638
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27639
27640
27641
27642
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27643
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27644
else
27645
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27646
27647
sed 's/^/| /' conftest.$ac_ext >&5

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

27651
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27652
27653
27654
27655
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
27656
27657
27658
{ $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
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27670
27671
{ $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
27672
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27673
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27674
27675
27676
27677
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
27678
27679
27680
27681
27682
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27683
27684
27685
27686
27687
27688
27689
27690

/* 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
27691
27692
27693
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27694
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27695
27696
27697
27698
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27699
27700
27701
27702
27703
27704
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
27705
27706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27707
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27708
27709
27710
27711
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27712
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27713
27714
27715
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27716
27717
27718
27719
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27720
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27721
else
27722
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27723
27724
sed 's/^/| /' conftest.$ac_ext >&5

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

27728
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27729
27730
27731
27732
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
27733
27734
27735
{ $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
27736
27737
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27738
27739
_ACEOF

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
      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
27766
27767
    { $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
27768
if test "${ac_cv_lib_ptcblas_cblas_dgemm+set}" = set; then
27769
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27770
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27771
27772
27773
  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
27774
27775
27776
27777
27778
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27779
27780
27781
27782
27783
27784
27785
27786

/* 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
27787
27788
27789
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27790
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27791
27792
27793
27794
27795
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27796
27797
27798
27799
27800
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27801
27802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27803
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27804
27805
27806
27807
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27809
27810
27811
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27812
27813
27814
27815
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27816
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27817
else
27818
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27819
27820
sed 's/^/| /' conftest.$ac_ext >&5

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

27824
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27826
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27827
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27828
fi
27829
27830
27831
27832
{ $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
27833
else
27834
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27835
27836
fi

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


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27846
27847
      use_atlas=yes
    else
27848
27849
27850
27851
      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
27852

27853
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
    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
27865

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27866

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27867
27868
if test "$use_atlas" = "yes"; then
  LIBS="$ATLAS_LIB $LIBS"
27869
27870
27871
27872
  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
27873
else
27874
27875
  { { $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
27876
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27877
27878
27879
fi

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

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

27894
27895
27896



Emmanuel Bertin's avatar
Emmanuel Bertin committed
27897
27898

# Display compiler and linker flags
27899
27900
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
27901
27902
27903
27904
{ $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; }
27905
27906
27907
27908
{ $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
27909

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27910
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
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923



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
27924
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27925
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27926
27927
27928
27929
  # 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
27930
27931
27932
27933
27934
27935
27936
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


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

: ${CONFIG_STATUS=./config.status}
27973
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27974
27975
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27976
27977
27978
{ $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
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
#! $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

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

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