Mercurial > hg > octave-nkf
diff configure.in @ 3827:ba548facf43b
[project @ 2001-05-02 06:15:06 by jwe]
author | jwe |
---|---|
date | Wed, 02 May 2001 06:15:09 +0000 |
parents | 74255bd05bdd |
children | 47ee5e57a350 |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -AC_REVISION($Revision: 1.346 $) +AC_REVISION($Revision: 1.347 $) AC_PREREQ(2.9) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -351,6 +351,38 @@ AC_DEFINE(HAVE_HDF5)])])]) fi +# Checks for FFTW header and library. + +# subdirectories of libcruft to build if they aren't found on the system: +FFT_DIR="fftpack" +AC_SUBST(FFT_DIR) + +# Installed fftw library, if any. +FFTW_LIBS='' +AC_SUBST(FFTW_LIBS) + +AC_ARG_WITH(fftw, + [ --with-fftw use installed fftw instead of included fftpack], + with_fftw=yes, with_fftw=yes) + +if test "$with_fftw" = "yes"; then + AC_CHECK_HEADERS(dfftw.h fftw.h) + if test "$ac_cv_header_dfftw_h" = yes \ + || test "$ac_cv_header_fftw_h" = yes; then + AC_CHECK_LIB(dfftw, fftw_create_plan, FFTW_LIBS="-ldfftw", + [AC_CHECK_LIB(fftw, fftw_create_plan, FFTW_LIBS="-lfftw", with_fftw=no)]) + else + with_fftw=no + fi +fi + +if test "$with_fftw" = yes; then + FFT_DIR='' + AC_DEFINE(HAVE_FFTW) +fi + +# ---------------------------------------------------------------------- + ### We need these before trying to find libf2c. OCTAVE_PROG_AR @@ -1346,6 +1378,7 @@ Fortran compiler: $FORT Fortran libraries: $FLIBS BLAS libraries: $BLAS_LIBS + FFTW libraries: $FFTW_LIBS HDF5 libraries: $HDF5_LIBS LIBS: $LIBS Default pager: $DEFAULT_PAGER