summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2018-11-13 21:32:23 +1100
committerPeter Ross <pross@xvid.org>2018-11-28 22:16:07 +1100
commit8b7a1c22274e591f6927e1d4f0e2cb6989081fcc (patch)
tree045c72347384f111c74531a2167b56e1e6d2121c /configure
parentdea1224754fda003b0229c56bce6602a5699d8db (diff)
configure: memalign is broken on djgpp 2.05
djgpp 2.05 finally provides posix-compatible memalign, but it is broken, so use malloc instead. discussion: http://www.delorie.com/archives/browse.cgi?p=djgpp/2017/12/29/16:26:58
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 197e978a55..3e9222ed1b 100755
--- a/configure
+++ b/configure
@@ -6796,10 +6796,17 @@ check_deps $CONFIG_LIST \
enabled threads && ! enabled pthreads && ! enabled atomics_native && die "non pthread threading without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you are on x86"
enabled avresample && warn "Building with deprecated library libavresample"
-if test $target_os = "haiku"; then
+case $target_os in
+haiku)
disable memalign
disable posix_memalign
-fi
+ ;;
+*-dos|freedos|opendos)
+ if test_cpp_condition sys/version.h "defined(__DJGPP__) && __DJGPP__ == 2 && __DJGPP_MINOR__ == 5"; then
+ disable memalign
+ fi
+ ;;
+esac
flatten_extralibs(){
nested_entries=