diff options
author | Thomas White <taw@physics.org> | 2015-07-13 17:21:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-07-13 17:21:52 +0200 |
commit | 7c473f3cccab29c4581c97d41770e4aa3c67eab3 (patch) | |
tree | aa0afade590f2ed7c890bdff4f9e6d1aee8ab0e2 | |
parent | 4612f7dc43f5341cc0c0b5dc52e74d7cdaedba86 (diff) |
configure: Add --with-fftw
-rw-r--r-- | configure.ac | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 5086459c..87f84f76 100644 --- a/configure.ac +++ b/configure.ac @@ -276,14 +276,22 @@ AC_CHECK_LIB([rt], [clock_gettime], AC_MSG_WARN([Time intervals may not be correct in certain circumstances.]) ]) - -PKG_CHECK_MODULES([FFTW], [fftw3], +AC_ARG_WITH(fftw, +[AS_HELP_STRING([--with-ffftw], + [specify location of FFTW (instead of using pkg-config)])], +[FFTW_CFLAGS="-I$withflag/include" + FFTW_LIBS="-L$withval/lib -L$withval/lib64 -lfftw3" + have_fftw=true], +[PKG_CHECK_MODULES([FFTW], [fftw3], [ have_fftw=true - AC_DEFINE([HAVE_FFTW], [1], [Define to 1 if FFTW is available]) ], [ AC_MSG_WARN([asdf indexing wil not be available.]) have_fftw=false +])]) +AS_IF([test x$have_fftw = xtrue], +[ + AC_DEFINE([HAVE_FFTW], [1], [Define to 1 if FFTW is available]) ]) AX_WITH_CURSES |