configure 913 KB
Newer Older
26001
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26002
26003
26004
26005
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26007
rm -f conftest.err conftest.$ac_ext
26008
26009
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26010
26011
26012
26013

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26014
26015
26016
26017
    { $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
26018
26019
26020
    ac_header_preproc=yes
    ;;
  no:yes:* )
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
    { $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
26033
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26034
26035
26036
26037
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26038
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26039
26040
    ;;
esac
26041
26042
{ $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
26043
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26044
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26045
26046
26047
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26048
26049
26050
26051
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
26052
26053

fi
26054
26055
26056
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
26057
  cat >>confdefs.h <<_ACEOF
26058
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26059
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26060
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26061
26062
26063
26064
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26065
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26066

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26067
26068
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "atlas/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26069
26070
26071
26072
_ACEOF


cat >>confdefs.h <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26073
#define ATLAS_LAPACK_H "atlas/clapack.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26074
26075
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26076
26077
      else
        atlas_def=/usr/local/atlas
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26078

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26079
26080
26081

for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
26082
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26083
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26084
26085
  { $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
26086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26087
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26088
fi
26089
26090
26091
26092
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
26093
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26094
  # Is the header compilable?
26095
26096
{ $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
26097
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26098
26099
26100
26101
26102
26103
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26104
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26105
26106
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26107
26108
26109
26110
26111
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26112
26113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26114
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26115
26116
26117
26118
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26119
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26120
26121
26122
26123
26124
  (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
26125
else
26126
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26127
26128
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26129
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26130
26131
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133
26134
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26135

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26136
# Is the header present?
26137
26138
{ $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
26139
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26140
26141
26142
26143
26144
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26145
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26146
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26147
26148
26149
26150
26151
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26152
26153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26154
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26155
26156
26157
26158
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26159
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26160
26161
26162
26163
26164
  (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
26165
else
26166
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26167
26168
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26169
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26170
26171
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26172
rm -f conftest.err conftest.$ac_ext
26173
26174
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26175

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26176
26177
26178
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26179
26180
26181
26182
    { $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
26183
26184
26185
    ac_header_preproc=yes
    ;;
  no:yes:* )
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
    { $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
26198
26199
26200
26201
26202
26203
26204
26205
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
26206
26207
{ $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
26208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26209
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26210
26211
26212
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26213
26214
26215
26216
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
26217
26218

fi
26219
26220
26221
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
26222
  cat >>confdefs.h <<_ACEOF
26223
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26224
26225
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26226
26227
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26228
26229
26230
26231
26232
26233
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
26234
26235
26236
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
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
26247
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26248
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26249
26250
  { $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
26251
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26252
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26253
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
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26259
  # Is the header compilable?
26260
26261
{ $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
26262
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26263
26264
26265
26266
26267
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26268
26269
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26270
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26271
26272
26273
26274
26275
26276
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
26277
26278
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26279
26280
26281
26282
26283
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26284
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26285
26286
26287
26288
26289
  (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
26290
else
26291
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26292
sed 's/^/| /' conftest.$ac_ext >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26293

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26294
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26295
26296
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298
26299
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26300

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26301
# Is the header present?
26302
26303
{ $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
26304
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26305
26306
26307
26308
26309
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26310
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26311
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26312
26313
26314
26315
26316
if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26320
26321
26322
26323
  ac_status=$?
  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
  (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
26330
else
26331
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26332
26333
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26334
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26335
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26336
26337

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26344
26345
26346
26347
    { $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
26348
26349
26350
    ac_header_preproc=yes
    ;;
  no:yes:* )
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
    { $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
26363
26364
26365
26366
26367
26368
26369
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26370
esac
26371
26372
{ $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
26373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26374
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26375
26376
26377
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26378
26379
26380
26381
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
26382
26383

fi
26384
26385
26386
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
26387
  cat >>confdefs.h <<_ACEOF
26388
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
_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
26413

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26414

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26415
for ac_header in $atlas_libdir/include/cblas.h $atlas_libdir/include/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26416
do
26417
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26418
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26419
26420
  { $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
26421
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26422
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26423
fi
26424
26425
26426
26427
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
26428
26429
else
  # Is the header compilable?
26430
26431
{ $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
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
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
26442
26443
26444
26445
26446
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26447
26448
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26449
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26450
26451
26452
26453
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26455
26456
26457
26458
  (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
26459
26460
  ac_header_compiler=yes
else
26461
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26462
26463
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26464
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26465
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26466
26467

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468
26469
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26470
26471

# Is the header present?
26472
26473
{ $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
26474
26475
26476
26477
26478
26479
26480
26481
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
26482
26483
26484
26485
26486
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26487
26488
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26489
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26490
26491
26492
26493
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26495
26496
26497
26498
  (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
26499
26500
  ac_header_preproc=yes
else
26501
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26502
26503
26504
26505
sed 's/^/| /' conftest.$ac_ext >&5

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

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26514
26515
26516
26517
    { $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
26518
26519
26520
    ac_header_preproc=yes
    ;;
  no:yes:* )
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
    { $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
26533
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26534
26535
26536
26537
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26538
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26539
26540
    ;;
esac
26541
26542
{ $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
26543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26544
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26545
26546
26547
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26548
26549
26550
26551
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
26552
26553

fi
26554
26555
26556
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
26557
  cat >>confdefs.h <<_ACEOF
26558
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26559
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26560
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26561
26562
26563
26564
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
    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
26581
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26582
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26583
26584
  { $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
26585
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26586
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26587
fi
26588
26589
26590
26591
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
26592
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26593
  # Is the header compilable?
26594
26595
{ $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
26596
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26597
26598
26599
26600
26601
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26602
26603
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26604
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26605
26606
26607
26608
26609
26610
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
26611
26612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26613
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26614
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26615
26616
26617
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26619
26620
26621
26622
26623
26624
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
26625
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26626
26627
26628
26629
26630
26631
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26632
26633
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26634
26635

# Is the header present?
26636
26637
{ $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
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
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
26651
26652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26653
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26654
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26655
26656
26657
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26659
26660
26661
26662
26663
  (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
26664
else
26665
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26666
26667
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26668
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26669
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26670
26671

rm -f conftest.err conftest.$ac_ext
26672
26673
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26674
26675
26676
26677

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26678
26679
26680
26681
    { $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
26682
26683
26684
    ac_header_preproc=yes
    ;;
  no:yes:* )
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
    { $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
26697
26698
26699
26700
26701
26702
26703
26704
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
26705
26706
{ $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
26707
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26709
26710
else
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26711
fi
26712
26713
26714
26715
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
26716

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26717
fi
26718
26719
26720
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
26721
  cat >>confdefs.h <<_ACEOF
26722
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26723
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26724
26725
 acx_atlas_ok=yes
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26726

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26727
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26728

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26729
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26730

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26731
26732
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26733
26734
26735
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26736
26737
26738
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26739

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26740
26741
26742
26743
26744
26745
      else
        ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_libdir/include!"
      fi
    fi
  fi
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26746
26747


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26748
for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26749
do
26750
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26751
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26752
26753
  { $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
26754
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26755
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26756
fi
26757
26758
26759
26760
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
26761
26762
else
  # Is the header compilable?
26763
26764
{ $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
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
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
26775
26776
26777
26778
26779
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26780
26781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26782
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26783
26784
26785
26786
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26787
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26788
26789
26790
26791
  (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
26792
26793
  ac_header_compiler=yes
else
26794
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26795
26796
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26797
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26798
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26799
26800

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801
26802
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26803
26804

# Is the header present?
26805
26806
{ $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
26807
26808
26809
26810
26811
26812
26813
26814
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
26815
26816
26817
26818
26819
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26820
26821
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26822
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26823
26824
26825
26826
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26827
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26828
26829
26830
26831
  (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
26832
26833
  ac_header_preproc=yes
else
26834
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26835
26836
26837
26838
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26840
rm -f conftest.err conftest.$ac_ext
26841
26842
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26843
26844
26845
26846

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
26847
26848
26849
26850
    { $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
26851
26852
26853
    ac_header_preproc=yes
    ;;
  no:yes:* )
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
    { $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
26866
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26867
26868
26869
26870
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26871
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26872
26873
    ;;
esac
26874
26875
{ $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
26876
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26877
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26878
26879
26880
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
26881
26882
26883
26884
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
26885
26886

fi
26887
26888
26889
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
26890
  cat >>confdefs.h <<_ACEOF
26891
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26892
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26893
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26894
26895
26896
26897
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26898
  if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26899

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
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

26920
26921
{ $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
26922
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26923
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26924
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26925
26926
26927
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26928
26929
26930
26931
26932
26933
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26934
26935
/* 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
26936
26937
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26938
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26939
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26940
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26941
26942
26943
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26944
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26945
26946
26947
26948
26949
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26950
26951
26952
26953
26954
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26955
26956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26957
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26958
26959
26960
26961
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26962
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26963
26964
26965
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26966
26967
26968
26969
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26970
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26971
else
26972
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26973
26974
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26975
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26976
26977
fi

26978
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26979
26980
26981
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
26982
fi
26983
26984
26985
{ $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
26986
26987
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26988
26989
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26990
26991
26992
26993
  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26994
26995
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26996

26997
26998
{ $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
26999
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27000
  $as_echo_n "(cached) " >&6
For faster browsing, not all history is shown. View entire blame