Skip to content

Commit

Permalink
add --disable-alloca to configure
Browse files Browse the repository at this point in the history
It looks like alloca() is broken on mingw64, and thus
we need to disable it explicitly.
  • Loading branch information
fftw committed Jun 10, 2009
1 parent 902651a commit ddd2281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(fftw, 3.2.1, [email protected])
AC_INIT(fftw, 3.2.2alpha, [email protected])
AC_CONFIG_SRCDIR(kernel/ifftw.h)
SHARED_VERSION_INFO="5:3:2" # CURRENT:REVISION:AGE

Expand Down Expand Up @@ -44,6 +44,11 @@ if test "$ok" = "yes"; then
AC_DEFINE(FFTW_DEBUG_ALIGNMENT,1,[Define to enable alignment debugging hacks.])
fi

AC_ARG_ENABLE(alloca, [AC_HELP_STRING([--enable-alloca],[enable use of the alloca() function (may be broken on mingw64)])], ok=$enableval, ok=yes)
if test "$ok" = "yes"; then
AC_DEFINE(FFTW_ENABLE_ALLOCA,1,[Define to enable the use of alloca().])
fi

AC_ARG_ENABLE(single, [AC_HELP_STRING([--enable-single],[compile fftw in single precision])], ok=$enableval, ok=no)
AC_ARG_ENABLE(float, [AC_HELP_STRING([--enable-float],[synonym for --enable-single])], ok=$enableval)
if test "$ok" = "yes"; then
Expand Down
2 changes: 1 addition & 1 deletion kernel/ifftw.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ typedef struct scanner_s scanner;
#define MIN_ALIGNMENT 16
#endif

#ifdef HAVE_ALLOCA
#if defined(HAVE_ALLOCA) && defined(FFTW_ENABLE_ALLOCA)
/* use alloca if available */

#ifndef alloca
Expand Down

0 comments on commit ddd2281

Please sign in to comment.