aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-01-07 23:36:34 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-01-07 23:36:34 +0000
commit1f91cdce0b95b9395bd8d085146dcc8b06418614 (patch)
tree05b1995fe1d141182c6a81a543d148432b429b15 /configure
parent218a6022e7be21e1f1b78f6f8f06917769e916f4 (diff)
downloadffmpeg-1f91cdce0b95b9395bd8d085146dcc8b06418614.tar.gz
Use posix_memalign() if available.
Originally committed as revision 16488 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 2c42b47c70..fe20844a51 100755
--- a/configure
+++ b/configure
@@ -866,6 +866,7 @@ HAVE_LIST="
memalign
mkstemp
pld
+ posix_memalign
ppc64
round
roundf
@@ -1819,6 +1820,7 @@ check_func getrusage
check_func inet_aton $network_extralibs
check_func memalign
check_func mkstemp
+check_func posix_memalign
check_func_headers windows.h GetProcessTimes
check_header conio.h
@@ -1833,8 +1835,8 @@ check_header vdpau/vdpau.h
check_header vdpau/vdpau_x11.h
check_header X11/extensions/XvMClib.h
-if ! enabled_any memalign memalign_hack && enabled need_memalign ; then
- die "Error, no memalign() but SSE enabled, disable it or use --enable-memalign-hack."
+if ! enabled_any memalign memalign_hack posix_memalign && enabled need_memalign ; then
+ die "Error, no aligned memory allocator but SSE enabled, disable it or use --enable-memalign-hack."
fi
disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib