configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25001
cat >>confdefs.h <<\_ACEOF
25002
#define HAVE_FFTW_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25003
25004
_ACEOF

25005
25006
25007
25008
25009
            FFTW_LIBS="-lfftw3_threads -lfftw3"
          else
            FFTW_WARN="FFTW double precision library was compiled without multithreading support!"

          fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25010
25011
25012
25013
        fi
      fi
    fi
  else
25014
    if test xyes = xyes; then
25015
25016
      { $as_echo "$as_me:$LINENO: checking for fftwf_execute in -lfftw3f" >&5
$as_echo_n "checking for fftwf_execute in -lfftw3f... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25017
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
25018
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25019
25020
25021
25022
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f -L$fftw_libdir -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25023
25024
25025
25026
25027
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042

/* 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 fftwf_execute ();
int
main ()
{
return fftwf_execute ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25043
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25044
25045
25046
25047
25048
25049
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
25050
25051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25052
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25053
25054
25055
25056
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25058
25059
25060
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25061
25062
25063
25064
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25065
  ac_cv_lib_fftw3f_fftwf_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25066
else
25067
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25068
25069
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25070
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25071
25072
fi

25073
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25074
25075
25076
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
25077
fi
25078
25079
25080
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_execute" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_execute" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_execute" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25081
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25082
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25083
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25084
25085
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25086
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25087

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25088
25089
25090
25091
25092
25093
25094
25095
25096
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTWF 1
_ACEOF

        FFTW_LIBS="-L$fftw_libdir -lfftw3f"
      else
        FFTW_ERROR="FFTW single precision library files not found in $fftw_libdir!"
      fi
    else
25097
25098
      { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25099
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
25100
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25101
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25102
25103
25104
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3 -L$fftw_libdir -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25105
25106
25107
25108
25109
25110
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25111
25112
25113
25114
25115
25116
25117
/* 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 fftw_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25118
25119
25120
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25121
return fftw_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25122
25123
25124
25125
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25126
25127
25128
25129
25130
25131
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
25132
25133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25134
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25135
25136
25137
25138
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25140
25141
25142
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25143
25144
25145
25146
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25147
  ac_cv_lib_fftw3_fftw_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25148
else
25149
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25150
25151
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25152
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25153
25154
fi

25155
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25156
25157
25158
25159
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
25160
25161
25162
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25163
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25164
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25165
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25166
25167
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25168
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25169

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTW 1
_ACEOF

        FFTW_LIBS="-L$fftw_libdir -lfftw3"
      else
        FFTW_ERROR="FFTW double precision library files not found in $fftw_libdir!"
      fi
    fi
    if test x$acx_fftw_ok = xyes && test x$use_pthreads = xyes; then
25180
      if test xyes = xyes; then
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
        { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f... " >&6; }
if test "${ac_cv_lib_fftw3f_fftwf_init_threads+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f -L$fftw_libdir -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 fftwf_init_threads ();
int
main ()
{
return fftwf_init_threads ();
  ;
  return 0;
}
_ACEOF
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
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3f_fftwf_init_threads=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_fftwf_init_threads=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
else
  acx_fftwt_ok=no
fi

        if test x$acx_fftwt_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTWF_MP 1
_ACEOF

          FFTW_LIBS="-L$fftw_libdir -lfftw3f"
        else
          { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f_threads" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f_threads... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25262
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
25263
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25264
25265
25266
25267
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f_threads -L$fftw_libdir -lfftw3f -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25268
25269
25270
25271
25272
25273
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
/* 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 fftwf_init_threads ();
int
main ()
{
return fftwf_init_threads ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25288
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25289
25290
25291
25292
25293
25294
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
25295
25296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25297
25298
25299
25300
25301
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25302
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25303
25304
25305
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25306
25307
25308
25309
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25310
  ac_cv_lib_fftw3f_threads_fftwf_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25311
else
25312
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25313
25314
25315
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25316
25317
fi

25318
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25319
25320
25321
25322
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
25323
25324
25325
25326
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_threads_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25327
else
25328
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25329
25330
fi

25331
          if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25332
25333

cat >>confdefs.h <<\_ACEOF
25334
#define HAVE_FFTWF_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25335
25336
_ACEOF

25337
25338
25339
25340
25341
            FFTW_LIBS="-L$fftw_libdir -lfftw3f_threads -lfftw3f"
          else
            FFTW_WARN="FFTW single precision library in $fftw_libdir was compiled without multithreading support!"

          fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25342
25343
        fi
      else
25344
25345
        { $as_echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3_threads" >&5
$as_echo_n "checking for fftw_init_threads in -lfftw3_threads... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25346
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
25347
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25348
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25349
25350
25351
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3_threads -L$fftw_libdir -lfftw3 -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25352
25353
25354
25355
25356
25357
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25358
25359
25360
25361
25362
25363
25364
/* 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 fftw_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25365
25366
25367
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25368
25369
25370
return fftw_init_threads ();
  ;
  return 0;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25371
25372
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25373
25374
25375
25376
25377
25378
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
25379
25380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25381
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25382
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25383
25384
25385
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25387
25388
25389
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25390
25391
25392
25393
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25394
  ac_cv_lib_fftw3_threads_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25395
else
25396
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25397
25398
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25399
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25400
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25401

25402
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25403
25404
25405
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
25406
fi
25407
25408
25409
25410
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_threads_fftw_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3_threads_fftw_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3_threads_fftw_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25411
else
25412
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25413
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25414

25415
        if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25416
25417

cat >>confdefs.h <<\_ACEOF
25418
#define HAVE_FFTW_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25419
25420
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25421
25422
          FFTW_LIBS="-L$fftw_libdir -lfftw3_threads -lfftw3"
        else
25423
25424
          FFTW_WARN="FFTW double precision library in $fftw_libdir was compiled without multithreading support!"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25425
25426
25427
25428
        fi
      fi
    fi
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25429
25430
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25431
25432
25433
25434
25435
25436
25437
25438
LIBS="$OLIBS"
if test x$acx_fftw_ok = xyes; then

  use_fftw=yes
else

  use_fftw=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25439
25440


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25441
25442
if test "$use_fftw" = "yes"; then
  LIBS="$FFTW_LIBS $LIBS"
25443
25444
25445
25446
  if test "$FFTW_WARN" != ""; then
    { $as_echo "$as_me:$LINENO: WARNING: $FFTW_WARN" >&5
$as_echo "$as_me: WARNING: $FFTW_WARN" >&2;}
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25447
else
25448
25449
  { { $as_echo "$as_me:$LINENO: error: $FFTW_ERROR Exiting." >&5
$as_echo "$as_me: error: $FFTW_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25450
25451
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25452

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25453
################## handle the ATLAS library(linear algebra) ##################
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25454
25455
25456
25457




Emmanuel Bertin's avatar
Emmanuel Bertin committed
25458
25459
25460
acx_atlas_ok=no
if test x$atlas_incdir = x; then
  if test x$atlas_libdir = x; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25461
25462


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25463
for ac_header in cblas.h clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25464
do
25465
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25466
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25467
25468
  { $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
25469
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25470
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25471
fi
25472
25473
25474
25475
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
25476
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25477
  # Is the header compilable?
25478
25479
{ $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
25480
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25481
25482
25483
25484
25485
25486
25487
25488
25489
/* 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
25490
25491
25492
25493
25494
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25495
25496
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25497
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25498
25499
25500
25501
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25503
25504
25505
25506
25507
25508
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
25509
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25510
25511
25512
25513
25514
25515
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25516
25517
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25518
25519

# Is the header present?
25520
25521
{ $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
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
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
25535
25536
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25537
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25538
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25539
25540
25541
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25542
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25543
25544
25545
25546
25547
25548
  (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
else
25549
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25550
25551
25552
25553
25554
25555
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
25556
25557
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25558
25559
25560
25561

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25562
25563
25564
25565
    { $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
25566
25567
25568
    ac_header_preproc=yes
    ;;
  no:yes:* )
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
    { $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
25581
25582
25583
25584
25585
25586
25587
25588
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25589
25590
{ $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
25591
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25592
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25593
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25594
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25595
fi
25596
25597
25598
25599
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
25600

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25601
fi
25602
25603
25604
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
25605
  cat >>confdefs.h <<_ACEOF
25606
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25607
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25608
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25609
25610
25611
25612
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25613
    if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25614

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25615
25616
25617
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "cblas.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25618
25619


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25620
25621
25622
cat >>confdefs.h <<\_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25623

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25624
    else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25625
25626


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25627
for ac_header in atlas/cblas.h atlas/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25628
do
25629
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25630
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25631
25632
  { $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
25633
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25634
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25635
fi
25636
25637
25638
25639
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
25640
25641
else
  # Is the header compilable?
25642
25643
{ $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
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
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
25654
25655
25656
25657
25658
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25659
25660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25661
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25662
25663
25664
25665
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25666
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25667
25668
25669
25670
  (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
25671
25672
  ac_header_compiler=yes
else
25673
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25674
25675
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25676
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25677
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25678
25679

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25680
25681
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25682
25683

# Is the header present?
25684
25685
{ $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
25686
25687
25688
25689
25690
25691
25692
25693
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
25694
25695
25696
25697
25698
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25699
25700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25701
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25702
25703
25704
25705
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25707
25708
25709
25710
  (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
25711
25712
  ac_header_preproc=yes
else
25713
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25714
25715
25716
25717
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25719
rm -f conftest.err conftest.$ac_ext
25720
25721
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25722
25723
25724
25725

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25726
25727
25728
25729
    { $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
25730
25731
25732
    ac_header_preproc=yes
    ;;
  no:yes:* )
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
    { $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
25745
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25746
25747
25748
25749
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25750
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25751
25752
    ;;
esac
25753
25754
{ $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
25755
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25756
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25757
25758
25759
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25760
25761
25762
25763
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
25764
25765

fi
25766
25767
25768
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
25769
  cat >>confdefs.h <<_ACEOF
25770
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25771
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25772
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25773
25774
25775
25776
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25777
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25778

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25779
25780
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "atlas/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25781
25782
25783
25784
_ACEOF


cat >>confdefs.h <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25785
#define ATLAS_LAPACK_H "atlas/clapack.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25786
25787
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25788
25789
      else
        atlas_def=/usr/local/atlas
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25790

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25791
25792
25793

for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
25794
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25795
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25796
25797
  { $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
25798
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25799
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25800
fi
25801
25802
25803
25804
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
25805
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25806
  # Is the header compilable?
25807
25808
{ $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
25809
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25810
25811
25812
25813
25814
25815
/* 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
25816
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25817
25818
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25819
25820
25821
25822
25823
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25824
25825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25826
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25827
25828
25829
25830
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25831
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25832
25833
25834
25835
25836
  (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
25837
else
25838
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25839
25840
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25841
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25842
25843
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845
25846
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25847

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25848
# Is the header present?
25849
25850
{ $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
25851
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25852
25853
25854
25855
25856
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25857
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25858
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25859
25860
25861
25862
25863
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25864
25865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25866
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25867
25868
25869
25870
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25871
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25872
25873
25874
25875
25876
  (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
25877
else
25878
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25879
25880
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25881
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25882
25883
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25884
rm -f conftest.err conftest.$ac_ext
25885
25886
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25887

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25888
25889
25890
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25891
25892
25893
25894
    { $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
25895
25896
25897
    ac_header_preproc=yes
    ;;
  no:yes:* )
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
    { $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
25910
25911
25912
25913
25914
25915
25916
25917
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25918
25919
{ $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
25920
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25921
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25922
25923
25924
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25925
25926
25927
25928
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
25929
25930

fi
25931
25932
25933
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
25934
  cat >>confdefs.h <<_ACEOF
25935
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25936
25937
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25938
25939
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25940
25941
25942
25943
25944
25945
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
25946
25947
25948
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
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
25959
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25960
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25961
25962
  { $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
25963
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25964
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25965
fi
25966
25967
25968
25969
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
25970
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25971
  # Is the header compilable?
25972
25973
{ $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
25974
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25975
25976
25977
25978
25979
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25980
25981
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25982
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25983
25984
25985
25986
25987
25988
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
25989
25990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25991
25992
25993
25994
25995
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25996
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25997
25998
25999
26000
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
For faster browsing, not all history is shown. View entire blame