[FFmpeg-devel,1/5] configure: detect djgpp libc

Submitted by Peter Ross on Nov. 20, 2018, 2:28 p.m.

Details

Message ID 20c235e9bad2f7df745fdb2ae479b34503fdf0b4.1542723097.git.pross@xvid.org
State New
Headers show

Commit Message

Peter Ross Nov. 20, 2018, 2:28 p.m.
---
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/configure b/configure
index b4f944cfb0..9ceb4a0c76 100755
--- a/configure
+++ b/configure
@@ -5295,7 +5295,6 @@  case $target_os in
         network_extralibs="-lsocket"
         objformat="coff"
         enable dos_paths
-        add_cppflags -U__STRICT_ANSI__
         ;;
     linux)
         enable section_data_rel_ro
@@ -5464,6 +5463,9 @@  EOF
     elif test_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then
         eval ${pfx}libc_type=solaris
         add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
+    elif test_${pfx}cpp_condition sys/version.h "defined __DJGPP__"; then
+        eval ${pfx}libc_type=djgpp
+        add_cppflags -U__STRICT_ANSI__
     fi
     test_${pfx}cc <<EOF
 #include <time.h>