configure 876 KB
Newer Older
25001
25002
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25003
25004
25005
    ac_header_preproc=yes
    ;;
  no:yes:* )
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25018
25019
25020
25021
25022
25023
25024
25025
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25026
25027
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25028
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25029
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25030
25031
25032
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25033
25034
25035
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25036
25037

fi
25038
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25039
  cat >>confdefs.h <<_ACEOF
25040
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25041
25042
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25043
25044
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25045
25046
25047
25048
25049
25050
done

        if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25051
25052
25053
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_def/include/clapack.h"
_ACEOF

        else
          atlas_def=/usr/atlas


for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
25064
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25065
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25066
25067
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25068
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25069
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25070
fi
25071
25072
25073
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25074
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25075
  # Is the header compilable?
25076
25077
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25078
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25079
25080
25081
25082
25083
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25084
25085
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25086
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25087
25088
25089
25090
25091
25092
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25094
25095
25096
25097
25098
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25100
25101
25102
25103
25104
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25105
else
25106
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25107
sed 's/^/| /' conftest.$ac_ext >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25108

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25109
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25110
25111
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113
25114
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25115

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25116
# Is the header present?
25117
25118
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25119
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25120
25121
25122
25123
25124
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25125
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25126
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25127
25128
25129
25130
25131
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25133
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25134
25135
25136
25137
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25139
25140
25141
25142
25143
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25144
else
25145
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25146
25147
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25148
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25149
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25150
25151

rm -f conftest.err conftest.$ac_ext
25152
25153
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25154
25155
25156
25157

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25158
25159
25160
25161
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25162
25163
25164
    ac_header_preproc=yes
    ;;
  no:yes:* )
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25177
25178
25179
25180
25181
25182
25183
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25184
esac
25185
25186
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25187
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25188
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25189
25190
25191
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25192
25193
25194
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25195
25196

fi
25197
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25198
  cat >>confdefs.h <<_ACEOF
25199
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
_ACEOF
 acx_atlas_ok=yes
fi

done

          if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_def/include/clapack.h"
_ACEOF

          else
            ATLAS_ERROR="CBLAS/LAPack include files not found!"
          fi
        fi
      fi
    fi
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25224

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25225

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25226
for ac_header in $atlas_libdir/include/cblas.h $atlas_libdir/include/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25227
do
25228
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25229
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25230
25231
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25232
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25233
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25234
fi
25235
25236
25237
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25238
25239
else
  # Is the header compilable?
25240
25241
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25252
25253
25254
25255
25256
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25258
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25259
25260
25261
25262
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25264
25265
25266
25267
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25268
25269
  ac_header_compiler=yes
else
25270
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25271
25272
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25273
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25274
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25275
25276

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277
25278
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25279
25280

# Is the header present?
25281
25282
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25283
25284
25285
25286
25287
25288
25289
25290
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25291
25292
25293
25294
25295
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25297
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25298
25299
25300
25301
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25303
25304
25305
25306
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25307
25308
  ac_header_preproc=yes
else
25309
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25310
25311
25312
25313
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25314

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25315
rm -f conftest.err conftest.$ac_ext
25316
25317
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25318
25319
25320
25321

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25322
25323
25324
25325
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25326
25327
25328
    ac_header_preproc=yes
    ;;
  no:yes:* )
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25341
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25342
25343
25344
25345
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25346
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25347
25348
    ;;
esac
25349
25350
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25351
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25352
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25353
25354
25355
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25356
25357
25358
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25359
25360

fi
25361
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25362
  cat >>confdefs.h <<_ACEOF
25363
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25364
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25365
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25366
25367
25368
25369
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
    if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_libdir/include/cblas.h"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_libdir/include/clapack.h"
_ACEOF

    else


for ac_header in cblas.h clapack.h
do
25386
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25388
25389
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25391
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25392
fi
25393
25394
25395
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25396
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25397
  # Is the header compilable?
25398
25399
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25400
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25401
25402
25403
25404
25405
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25406
25407
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25408
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25409
25410
25411
25412
25413
25414
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25416
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25417
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25418
25419
25420
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25422
25423
25424
25425
25426
25427
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
25428
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25429
25430
25431
25432
25433
25434
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25435
25436
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25437
25438

# Is the header present?
25439
25440
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25455
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25456
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25457
25458
25459
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25461
25462
25463
25464
25465
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25466
else
25467
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25468
25469
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25470
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25471
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25472
25473

rm -f conftest.err conftest.$ac_ext
25474
25475
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25476
25477
25478
25479

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25480
25481
25482
25483
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25484
25485
25486
    ac_header_preproc=yes
    ;;
  no:yes:* )
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25499
25500
25501
25502
25503
25504
25505
25506
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25507
25508
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25509
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25510
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25511
25512
else
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25513
fi
25514
25515
25516
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25517

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25518
fi
25519
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25520
  cat >>confdefs.h <<_ACEOF
25521
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25522
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25523
25524
 acx_atlas_ok=yes
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25525

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25526
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25527

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25528
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25529

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25530
25531
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25532
25533
25534
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25535
25536
25537
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25538

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25539
25540
25541
25542
25543
25544
      else
        ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_libdir/include!"
      fi
    fi
  fi
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25545
25546


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25547
for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25548
do
25549
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25550
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25551
25552
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25553
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25555
fi
25556
25557
25558
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25559
25560
else
  # Is the header compilable?
25561
25562
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25573
25574
25575
25576
25577
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25579
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25580
25581
25582
25583
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25585
25586
25587
25588
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25589
25590
  ac_header_compiler=yes
else
25591
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25592
25593
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25594
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25595
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25596
25597

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25598
25599
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25600
25601

# Is the header present?
25602
25603
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25604
25605
25606
25607
25608
25609
25610
25611
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25612
25613
25614
25615
25616
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25618
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25619
25620
25621
25622
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25624
25625
25626
25627
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25628
25629
  ac_header_preproc=yes
else
25630
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25631
25632
25633
25634
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25635

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25636
rm -f conftest.err conftest.$ac_ext
25637
25638
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25639
25640
25641
25642

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25643
25644
25645
25646
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25647
25648
25649
    ac_header_preproc=yes
    ;;
  no:yes:* )
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25662
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25663
25664
25665
25666
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25667
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25668
25669
    ;;
esac
25670
25671
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25672
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25674
25675
25676
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25677
25678
25679
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25680
25681

fi
25682
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25683
  cat >>confdefs.h <<_ACEOF
25684
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25685
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25686
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25687
25688
25689
25690
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25691
  if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25692

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_incdir/cblas.h"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_incdir/clapack.h"
_ACEOF

  else
    ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_incdir!"
  fi
fi


if test x$acx_atlas_ok = xyes; then
  OLIBS="$LIBS"
  LIBS=""
  if test x$atlas_libdir = x; then

25713
25714
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25715
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
25716
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25717
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25718
25719
25720
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25721
25722
25723
25724
25725
25726
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25727
25728
/* 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
25729
25730
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25731
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25732
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25733
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25734
25735
25736
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25737
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25738
25739
25740
25741
25742
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25743
25744
25745
25746
25747
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25749
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25750
25751
25752
25753
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25755
25756
25757
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25758
25759
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25760
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25761
else
25762
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25763
25764
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25765
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25766
25767
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25768
25769
25770
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
25771
fi
25772
25773
25774
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25775
25776
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25777
25778
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25779
25780
25781
25782
  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25783
25784
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25785

25786
25787
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25788
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
25789
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25790
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25791
25792
25793
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25794
25795
25796
25797
25798
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25799
25800
25801
25802

/* 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
25803
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25804
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25805
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25806
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25807
25808
25809
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25810
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25811
25812
25813
25814
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25815
25816
25817
25818
25819
25820
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
25821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25822
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25823
25824
25825
25826
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25828
25829
25830
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25831
25832
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25833
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25834
else
25835
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25836
25837
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25838
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25839
25840
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25841
25842
25843
25844
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
25845
25846
25847
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25848
25849
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25850
25851
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25852
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25853
25854

else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
  acx_atlas_ok=no
fi

    if test x$acx_atlas_ok = xyes; then
      ATLAS_LIBPATH=""
    else
      atlas_def=/usr/local/atlas
      unset ac_cv_lib_lapack_clapack_dpotrf
      unset ac_cv_lib_cblas_cblas_dgemm
      acx_atlas_ok=yes

25866
25867
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25868
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
25869
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25870
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25871
25872
25873
  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
25874
25875
25876
25877
25878
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25879
25880
25881
25882
25883
25884
25885
25886

/* 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
25887
25888
25889
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25890
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25891
25892
25893
25894
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25895
25896
25897
25898
25899
25900
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
25901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25902
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25903
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25904
25905
25906
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25908
25909
25910
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25911
25912
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25913
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25914
else
25915
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25916
25917
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25918
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25919
25920
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25921
25922
25923
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
25924
fi
25925
25926
25927
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25928
25929
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25930
25931
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25932
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25933

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25934
25935
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25936
25937
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25938

25939
25940
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25941
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
25942
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25943
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25944
25945
25946
  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
25947
25948
25949
25950
25951
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25952
25953
25954
25955
25956
25957
25958
25959

/* 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
25960
25961
25962
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25963
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25964
25965
25966
25967
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25968
25969
25970
25971
25972
25973
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
25974
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25975
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25976
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25977
25978
25979
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25981
25982
25983
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25984
25985
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25986
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25987
else
25988
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25989
25990
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25991
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25992
25993
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25994
25995
25996
25997
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
25998
25999
26000
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
For faster browsing, not all history is shown. View entire blame