Newer
Older
for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Emmanuel Bertin
committed
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
LIBS="-llapack $LIBS"
else
acx_atlas_ok=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
acx_atlas_ok=no
fi
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH=""
else
atlas_def=/usr/local/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def/lib"
else
atlas_def=/usr/lib64/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def"
else
atlas_def=/usr/lib/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
LIBS="-lcblas $LIBS"
else
acx_atlas_ok=no
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def"
else
atlas_def=/usr/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
LIBS="-llapack $LIBS"
else
acx_atlas_ok=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
LIBS="-lcblas $LIBS"
else
acx_atlas_ok=no
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def/lib"
else
ATLAS_ERROR="CBLAS/LAPack library files not found at usual locations!"
fi
fi
fi
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
LIBS="-llapack $LIBS"
else
acx_atlas_ok=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
LIBS="-lcblas $LIBS"
else
acx_atlas_ok=no
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_libdir"
else
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
LIBS="-llapack $LIBS"
else
acx_atlas_ok=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
LIBS="-lcblas $LIBS"
else
acx_atlas_ok=no
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_libdir/lib"
else
ATLAS_ERROR="CBLAS/LAPack library files not found in $atlas_libdir!"
fi
fi
fi
LIBS="$OLIBS"
fi
if test x"$acx_atlas_ok" = xyes; then
$as_echo "#define HAVE_ATLAS 1" >>confdefs.h
if test x$use_pthreads = xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lptcblas" >&5
Emmanuel Bertin
committed
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
if ${ac_cv_lib_ptcblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
if ac_fn_c_try_link "$LINENO"; then :
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
Emmanuel Bertin
committed
$as_echo "$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_ptcblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin
committed
acx_atlast_ok=yes
Emmanuel Bertin
committed
acx_atlast_ok=no
Emmanuel Bertin
committed
if test x$acx_atlast_ok = xyes; then
ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
LIBS="$OLIBS"
$as_echo "#define HAVE_ATLAS_MP 1" >>confdefs.h
Emmanuel Bertin
committed
ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
LIBS="$OLIBS"
ATLAS_WARN="CBLAS/LAPack was compiled without multithreading support!"
Emmanuel Bertin
committed
use_atlas=yes
fi
else
ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
LIBS="$OLIBS"
use_atlas=yes
fi
else
use_atlas=no
fi
Emmanuel Bertin
committed
if test "$use_atlas" = "yes"; then
LIBS="$ATLAS_LIB $LIBS"
if test "$ATLAS_WARN" != ""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ATLAS_WARN" >&5
Emmanuel Bertin
committed
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
Emmanuel Bertin
committed
fi
else
as_fn_error $? "$ATLAS_ERROR Exiting." "$LINENO" 5
Emmanuel Bertin
committed
fi
fi
# Link with gprof option
if test "$enable_gprof" = "yes"; then
if test "$enable_icc" = "yes"; then
AM_CFLAGS="$AM_CFLAGS -pq"
AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin
committed
# "Best" linking option
if test "$enable_best_link" = "yes"; then
AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
# Display compiler and linker flags
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***************************************************************" >&5
Emmanuel Bertin
committed
$as_echo "***************************************************************" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Compile cmdline: $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&5
$as_echo "Compile cmdline: $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Link cmdline: $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&5
$as_echo "Link cmdline: $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Default XSLT URL: $xsl_url" >&5
Emmanuel Bertin
committed
$as_echo "Default XSLT URL: $xsl_url" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***************************************************************" >&5
Emmanuel Bertin
committed
$as_echo "***************************************************************" >&6; }
ac_config_files="$ac_config_files Makefile src/Makefile src/fits/Makefile src/levmar/Makefile src/wcs/Makefile man/Makefile tests/Makefile sextractor.spec man/sex.1"
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Emmanuel Bertin
committed
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin
committed
if test -z "${USE_MODEL_TRUE}" && test -z "${USE_MODEL_FALSE}"; then
as_fn_error $? "conditional \"USE_MODEL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin
committed
fi
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
as_fn_error $? "conditional \"USE_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
: "${CONFIG_STATUS=./config.status}"
Emmanuel Bertin
committed
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Emmanuel Bertin
committed
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Emmanuel Bertin
committed
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
Emmanuel Bertin
committed
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='print -r --'
as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Emmanuel Bertin
committed
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
Emmanuel Bertin
committed
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
Emmanuel Bertin
committed
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
Emmanuel Bertin
committed
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'