mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
build system: FFTW fix
This commit is contained in:
parent
65ca174dbb
commit
d2573189d8
34
configure.ac
34
configure.ac
@ -73,23 +73,6 @@ AC_ARG_WITH([fftw],
|
|||||||
[AM_CXXFLAGS="-I$with_fftw/include $AM_CXXFLAGS"]
|
[AM_CXXFLAGS="-I$with_fftw/include $AM_CXXFLAGS"]
|
||||||
[AM_LDFLAGS="-L$with_fftw/lib $AM_LDFLAGS"])
|
[AM_LDFLAGS="-L$with_fftw/lib $AM_LDFLAGS"])
|
||||||
|
|
||||||
#
|
|
||||||
# What about the MKL library replacement for fftw3 ? How do we know if fftw_execute
|
|
||||||
# can be found in MKL?
|
|
||||||
#
|
|
||||||
AC_CHECK_LIB([fftw3],[fftw_execute],
|
|
||||||
[AC_DEFINE([HAVE_FFTW],[1],[Define to 1 if you have the `FFTW' library (-lfftw3).])] [ac_fftw=yes],
|
|
||||||
[ac_fftw=no])
|
|
||||||
|
|
||||||
case ${ac_fftw} in
|
|
||||||
no)
|
|
||||||
echo WARNING libfftw3 not found FFT routines will not work
|
|
||||||
;;
|
|
||||||
yes)
|
|
||||||
AM_LDFLAGS="$AM_LDFLAGS -lfftw3 -lfftw3f"
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
################ Get compiler informations
|
################ Get compiler informations
|
||||||
AC_LANG([C++])
|
AC_LANG([C++])
|
||||||
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
|
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
|
||||||
@ -103,7 +86,6 @@ AC_DEFINE_UNQUOTED([GXX_VERSION],["$GXX_VERSION"],
|
|||||||
############### Checks for library functions
|
############### Checks for library functions
|
||||||
CXXFLAGS_CPY=$CXXFLAGS
|
CXXFLAGS_CPY=$CXXFLAGS
|
||||||
LDFLAGS_CPY=$LDFLAGS
|
LDFLAGS_CPY=$LDFLAGS
|
||||||
LIBS_CPY=$LIBS
|
|
||||||
CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
|
CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
|
||||||
LDFLAGS="$AM_LDFLAGS $LDFLAGS"
|
LDFLAGS="$AM_LDFLAGS $LDFLAGS"
|
||||||
AC_CHECK_FUNCS([gettimeofday])
|
AC_CHECK_FUNCS([gettimeofday])
|
||||||
@ -122,6 +104,11 @@ if test "${ac_LAPACK}x" != "nox"; then
|
|||||||
AC_CHECK_LIB([lapack],[LAPACKE_sbdsdc],[],
|
AC_CHECK_LIB([lapack],[LAPACKE_sbdsdc],[],
|
||||||
[AC_MSG_ERROR("LAPACK enabled but library not found")])
|
[AC_MSG_ERROR("LAPACK enabled but library not found")])
|
||||||
fi
|
fi
|
||||||
|
AC_CHECK_LIB([fftw3],[fftw_execute],
|
||||||
|
[AC_DEFINE([HAVE_FFTW],[1],[Define to 1 if you have the `FFTW' library (-lfftw3).])]
|
||||||
|
[have_fftw=true]
|
||||||
|
[LIBS="$LIBS -lfftw3 -lfftw3f"],
|
||||||
|
[AC_MSG_WARN([**** FFTW library not found, Grid can still compile but FFT-based routines will not work ****])])
|
||||||
CXXFLAGS=$CXXFLAGS_CPY
|
CXXFLAGS=$CXXFLAGS_CPY
|
||||||
LDFLAGS=$LDFLAGS_CPY
|
LDFLAGS=$LDFLAGS_CPY
|
||||||
|
|
||||||
@ -337,12 +324,15 @@ Summary of configuration for $PACKAGE v$VERSION
|
|||||||
- RNG choice : ${ac_RNG}
|
- RNG choice : ${ac_RNG}
|
||||||
- GMP : `if test "x$have_gmp" = xtrue; then echo yes; else echo no; fi`
|
- GMP : `if test "x$have_gmp" = xtrue; then echo yes; else echo no; fi`
|
||||||
- LAPACK : ${ac_LAPACK}
|
- LAPACK : ${ac_LAPACK}
|
||||||
- FFTW : ${ac_fftw}
|
- FFTW : `if test "x$have_fftw" = xtrue; then echo yes; else echo no; fi`
|
||||||
- build DOXYGEN documentation : `if test "x$enable_doc" = xyes; then echo yes; else echo no; fi`
|
- build DOXYGEN documentation : `if test "x$enable_doc" = xyes; then echo yes; else echo no; fi`
|
||||||
- graphs and diagrams : `if test "x$enable_dot" = xyes; then echo yes; else echo no; fi`
|
- graphs and diagrams : `if test "x$enable_dot" = xyes; then echo yes; else echo no; fi`
|
||||||
----- BUILD FLAGS -------------------------------------
|
----- BUILD FLAGS -------------------------------------
|
||||||
- CXXFLAGS: "${AM_CXXFLAGS} ${CXXFLAGS}"
|
- CXXFLAGS:
|
||||||
- LDFLAGS: "${AM_LDFLAGS} ${LDFLAGS}"
|
`echo ${AM_CXXFLAGS} ${CXXFLAGS} | sed 's/ -/\n\t-/g' | sed 's/^-/\t-/g'`
|
||||||
- LIBS: "${LIBS} "
|
- LDFLAGS:
|
||||||
|
`echo ${AM_LDFLAGS} ${LDFLAGS} | sed 's/ -/\n\t-/g' | sed 's/^-/\t-/g'`
|
||||||
|
- LIBS:
|
||||||
|
`echo ${LIBS} | sed 's/ -/\n\t-/g' | sed 's/^-/\t-/g'`
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user