configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26001
26002
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26004
26005
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26006

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26007
# Is the header present?
26008
26009
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26010
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26011
26012
26013
26014
26015
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26016
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26017
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26018
26019
26020
26021
26022
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26023
26024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26025
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26026
26027
26028
26029
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26030
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26031
26032
26033
26034
26035
  (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
26036
else
26037
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26038
26039
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26040
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26041
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26042
26043

rm -f conftest.err conftest.$ac_ext
26044
26045
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26046
26047
26048
26049

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26050
26051
26052
26053
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26054
26055
26056
    ac_header_preproc=yes
    ;;
  no:yes:* )
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26069
26070
26071
26072
26073
26074
26075
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26076
esac
26077
26078
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26079
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26080
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26081
26082
26083
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26084
26085
26086
26087
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26088
26089

fi
26090
26091
26092
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26093
  cat >>confdefs.h <<_ACEOF
26094
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
_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
26119

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26120

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26121
for ac_header in $atlas_libdir/include/cblas.h $atlas_libdir/include/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26122
do
26123
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26124
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26125
26126
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26127
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26128
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26129
fi
26130
26131
26132
26133
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26134
26135
else
  # Is the header compilable?
26136
26137
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
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
26148
26149
26150
26151
26152
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26153
26154
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26155
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26156
26157
26158
26159
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26161
26162
26163
26164
  (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
26165
26166
  ac_header_compiler=yes
else
26167
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26168
26169
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26170
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26171
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26172
26173

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26174
26175
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26176
26177

# Is the header present?
26178
26179
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26180
26181
26182
26183
26184
26185
26186
26187
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
26188
26189
26190
26191
26192
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26193
26194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26195
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26196
26197
26198
26199
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26200
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26201
26202
26203
26204
  (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
26205
26206
  ac_header_preproc=yes
else
26207
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26208
26209
26210
26211
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26213
rm -f conftest.err conftest.$ac_ext
26214
26215
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26216
26217
26218
26219

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26220
26221
26222
26223
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26224
26225
26226
    ac_header_preproc=yes
    ;;
  no:yes:* )
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26239
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26240
26241
26242
26243
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26244
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26245
26246
    ;;
esac
26247
26248
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26249
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26250
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26251
26252
26253
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26254
26255
26256
26257
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26258
26259

fi
26260
26261
26262
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26263
  cat >>confdefs.h <<_ACEOF
26264
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26265
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26266
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26267
26268
26269
26270
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
    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
26287
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26288
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26289
26290
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26291
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26292
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26293
fi
26294
26295
26296
26297
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26298
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26299
  # Is the header compilable?
26300
26301
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26302
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26303
26304
26305
26306
26307
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26308
26309
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26310
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26311
26312
26313
26314
26315
26316
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
26317
26318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26319
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26320
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26321
26322
26323
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26324
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26325
26326
26327
26328
26329
26330
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
26331
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26332
26333
26334
26335
26336
26337
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338
26339
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26340
26341

# Is the header present?
26342
26343
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
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
26357
26358
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26359
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26360
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26361
26362
26363
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26364
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26365
26366
26367
26368
26369
  (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
26370
else
26371
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26372
26373
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26374
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26375
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26376
26377

rm -f conftest.err conftest.$ac_ext
26378
26379
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26380
26381
26382
26383

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26384
26385
26386
26387
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26388
26389
26390
    ac_header_preproc=yes
    ;;
  no:yes:* )
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26403
26404
26405
26406
26407
26408
26409
26410
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
26411
26412
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26413
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26414
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26415
26416
else
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26417
fi
26418
26419
26420
26421
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26422

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26423
fi
26424
26425
26426
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26427
  cat >>confdefs.h <<_ACEOF
26428
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26429
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26430
26431
 acx_atlas_ok=yes
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26432

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26433
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26434

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26435
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26436

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26437
26438
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26439
26440
26441
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26442
26443
26444
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26445

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26446
26447
26448
26449
26450
26451
      else
        ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_libdir/include!"
      fi
    fi
  fi
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26452
26453


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26454
for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26455
do
26456
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26457
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26458
26459
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26460
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26461
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26462
fi
26463
26464
26465
26466
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26467
26468
else
  # Is the header compilable?
26469
26470
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
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
26481
26482
26483
26484
26485
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26486
26487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26488
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26489
26490
26491
26492
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26493
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26494
26495
26496
26497
  (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
26498
26499
  ac_header_compiler=yes
else
26500
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26501
26502
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26503
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26504
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26505
26506

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507
26508
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26509
26510

# Is the header present?
26511
26512
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26513
26514
26515
26516
26517
26518
26519
26520
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
26521
26522
26523
26524
26525
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26526
26527
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26528
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26529
26530
26531
26532
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26533
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26534
26535
26536
26537
  (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
26538
26539
  ac_header_preproc=yes
else
26540
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26541
26542
26543
26544
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26546
rm -f conftest.err conftest.$ac_ext
26547
26548
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26549
26550
26551
26552

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26553
26554
26555
26556
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26557
26558
26559
    ac_header_preproc=yes
    ;;
  no:yes:* )
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26572
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26573
26574
26575
26576
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26577
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26578
26579
    ;;
esac
26580
26581
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26582
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26583
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26584
26585
26586
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26587
26588
26589
26590
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26591
26592

fi
26593
26594
26595
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26596
  cat >>confdefs.h <<_ACEOF
26597
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26598
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26599
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26600
26601
26602
26603
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26604
  if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26605

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
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

26626
26627
{ $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
26628
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26629
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26630
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26631
26632
26633
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26634
26635
26636
26637
26638
26639
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26640
26641
/* 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
26642
26643
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26644
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26645
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26646
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26647
26648
26649
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26650
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26651
26652
26653
26654
26655
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26656
26657
26658
26659
26660
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26661
26662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26663
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26664
26665
26666
26667
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26668
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26669
26670
26671
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26672
26673
26674
26675
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26676
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26677
else
26678
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26679
26680
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26681
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26682
26683
fi

26684
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26685
26686
26687
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
26688
fi
26689
26690
26691
{ $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
26692
26693
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26694
26695
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26696
26697
26698
26699
  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26700
26701
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26702

26703
26704
{ $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
26705
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26706
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26707
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26708
26709
26710
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26711
26712
26713
26714
26715
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26716
26717
26718
26719

/* 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
26720
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26721
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26722
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26723
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26724
26725
26726
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26727
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26728
26729
26730
26731
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26732
26733
26734
26735
26736
26737
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
26738
26739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26740
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26741
26742
26743
26744
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26746
26747
26748
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26749
26750
26751
26752
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26753
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26754
else
26755
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26756
26757
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26758
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26759
26760
fi

26761
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26762
26763
26764
26765
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
26766
26767
26768
{ $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
26769
26770
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26771
26772
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26773
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26774
26775

else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
  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

26787
26788
{ $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
26789
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26790
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26791
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26792
26793
26794
  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
26795
26796
26797
26798
26799
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26800
26801
26802
26803
26804
26805
26806
26807

/* 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
26808
26809
26810
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26811
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26812
26813
26814
26815
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26816
26817
26818
26819
26820
26821
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
26822
26823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26824
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26825
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26826
26827
26828
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26830
26831
26832
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26833
26834
26835
26836
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26837
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26838
else
26839
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26840
26841
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26842
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26843
26844
fi

26845
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26846
26847
26848
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
26849
fi
26850
26851
26852
{ $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
26853
26854
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26855
26856
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26857
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26858

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26859
26860
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26861
26862
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26863

26864
26865
{ $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
26866
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26867
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26868
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26869
26870
26871
  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
26872
26873
26874
26875
26876
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26877
26878
26879
26880
26881
26882
26883
26884

/* 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
26885
26886
26887
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26888
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26889
26890
26891
26892
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26893
26894
26895
26896
26897
26898
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
26899
26900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26901
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26902
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26903
26904
26905
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26906
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26907
26908
26909
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26910
26911
26912
26913
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26914
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26915
else
26916
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26917
26918
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26919
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26920
26921
fi

26922
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26923
26924
26925
26926
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
26927
26928
26929
{ $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
26930
26931
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26932
26933
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26934
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26935

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26936
26937
26938
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26939

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26940
26941
26942
26943
26944
26945
26946
26947
      if test x$acx_atlas_ok = xyes; then
        ATLAS_LIBPATH="-L$atlas_def/lib"
      else
        atlas_def=/usr/lib64/atlas
        unset ac_cv_lib_lapack_clapack_dpotrf
        unset ac_cv_lib_cblas_cblas_dgemm
        acx_atlas_ok=yes

26948
26949
{ $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
26950
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26951
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26952
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26953
26954
26955
  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
26956
26957
26958
26959
26960
26961
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26962
26963
/* 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
26964
26965
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26966
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26967
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26968
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26969
26970
26971
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26972
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26973
26974
26975
26976
26977
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26978
26979
26980
26981
26982
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26983
26984
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26985
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26986
26987
26988
26989
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26990
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26991
26992
26993
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26994
26995
26996
26997
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26998
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26999
else
27000
  $as_echo "$as_me: failed program was:" >&5
For faster browsing, not all history is shown. View entire blame