configure 904 KB
Newer Older
27001
27002
27003
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27004
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27005
else
27006
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27007
27008
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27009
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27010
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27011

27012
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27014
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27015
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27016
fi
27017
27018
27019
{ $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
27020
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27021
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27022
27023
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27024
27025
  LIBS="-llapack $LIBS"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27026
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27027
27028
27029
27030
  acx_atlas_ok=no
fi


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27086
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27087
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27088

27089
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27090
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27091
27092
27093
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27094
27095
27096
{ $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
27097
27098
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27099
27100
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27101
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27102

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27103
27104
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27105
27106
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27107
27108
27109
27110
27111
27112
27113
        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
27114

27115
27116
{ $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
27117
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27118
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27119
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27120
27121
27122
  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
27123
27124
27125
27126
27127
27128
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27170
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27171
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27172

27173
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27174
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27175
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27176
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27177
fi
27178
27179
27180
{ $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
27181
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27182
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27183
27184
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27185
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27186

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27187
27188
27189
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27190
27191


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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27247
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27248
27249
fi

27250
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27251
27252
27253
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
27254
fi
27255
27256
27257
{ $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
27258
27259
27260
27261
27262
27263
27264
27265
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27266
27267
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27268
27269
27270
27271
27272
27273
27274
27275
          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

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27331
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27332
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27333

27334
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27335
27336
27337
27338
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
27339
27340
27341
{ $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
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27408
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27409
27410
fi

27411
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27412
27413
27414
27415
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
27416
27417
27418
{ $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
27419
27420
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27421
27422
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27423
27424
27425
27426
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27427
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439

            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

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27495
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27496
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27497

27498
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27499
27500
27501
27502
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
27503
27504
27505
{ $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
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27572
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27573
27574
fi

27575
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27576
27577
27578
27579
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
27580
27581
27582
{ $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
27583
27584
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27585
27586
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27587
27588
27589
27590
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27591
27592
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27593
27594
27595
27596
27597
27598
27599
    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

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27655
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27656
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27657

27658
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27659
27660
27661
27662
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
27663
27664
27665
{ $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
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27732
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27733
27734
fi

27735
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27736
27737
27738
27739
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
27740
27741
27742
{ $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
27743
27744
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27745
27746
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27747
27748
27749
27750
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27751
27752
fi

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27828
	ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27829
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27830

27831
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27833
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27834
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27835
fi
27836
27837
27838
27839
{ $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
27840
else
27841
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27842
27843
fi

27844
    if test x$acx_atlast_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27845
27846
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27847
27848


Emmanuel Bertin's avatar
Emmanuel Bertin committed
27849
27850
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27851
27852
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27853
27854
      use_atlas=yes
    else
27855
27856
27857
27858
      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
27859

27860
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
    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
27872

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27873

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27874
27875
if test "$use_atlas" = "yes"; then
  LIBS="$ATLAS_LIB $LIBS"
27876
27877
27878
27879
  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
27880
else
27881
27882
  { { $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
27883
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27884
27885
27886
27887
27888
fi

# Link with gprof option
if test "$use_gprof" = "yes"; then
  if test "$use_icc" = "yes"; then
27889
    AM_CFLAGS="$AM_CFLAGS -pq"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27890
  else
27891
    AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27892
  fi
27893
  use_best="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27894
27895
fi

27896
27897
# "Best" linking option
if test "$use_best" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27898
  AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27899
27900
fi

27901
27902
27903



Emmanuel Bertin's avatar
Emmanuel Bertin committed
27904
27905

# Display compiler and linker flags
27906
27907
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
27908
27909
27910
27911
{ $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; }
27912
27913
27914
27915
{ $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
27916

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27917
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
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930



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
27931
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27932
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27933
27934
27935
27936
  # 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
27937
27938
27939
27940
27941
27942
27943
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27944
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" 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 \"AMDEP\" 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
27957
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
27958
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" 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__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27961
27962
27963
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27964
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27965
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" 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 \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27968
27969
27970
27971
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
27972
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27973
Usually this means the macro was only invoked conditionally." >&5
27974
$as_echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27975
27976
27977
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27978
27979

: ${CONFIG_STATUS=./config.status}
27980
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27981
27982
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27983
27984
27985
{ $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
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
#! $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

27998
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27999
28000
## --------------------- ##
## M4sh Initialization.  ##
For faster browsing, not all history is shown. View entire blame