changeset 32637:9d2f9a281c62

Compilation fixes for currentl Cygwin.
author reimar
date Sun, 19 Dec 2010 22:02:52 +0000
parents 146fb0958630
children 4e23d0206602
files configure
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Dec 19 14:19:04 2010 +0000
+++ b/configure	Sun Dec 19 22:02:52 2010 +0000
@@ -1519,6 +1519,12 @@
   def_priority="#define CONFIG_PRIORITY 1"
 fi
 
+if cygwin ; then
+  # e.g. priority.c needs _WIN32 define, but
+  # latest cygwin no longer defines it
+  extra_cflags="-D_WIN32 $extra_cflags"
+fi
+
 if mingw32 ; then
   _getch=getch2-win.c
   _need_shmem=no
@@ -6622,7 +6628,10 @@
 
 echocheck "FAAD2 support"
 if test "$_faad_internal" = auto ; then
-  if x86_32 && test cc_vendor=gnu; then
+  if cygwin ; then
+    _faad_internal=no
+    res_comment="does not compile on cygwin"
+  elif x86_32 && test cc_vendor=gnu; then
     case $cc_version in
       3.1*|3.2) # ICE/insn with these versions
         _faad_internal=no