cygwin patch by (Felix Buenemann <atmosfear at users dot sourceforge dot net>)
[ffmpeg.git] / configure
index 41856b6..a9bd98b 100755 (executable)
--- a/configure
+++ b/configure
@@ -51,6 +51,7 @@ mp3lame="no"
 a52="yes"
 a52bin="no"
 win32="no"
+cygwin="no"
 lshared="no"
 extralibs="-lm"
 simpleidct="yes"
@@ -93,6 +94,16 @@ SHFLAGS="-dynamiclib"
 extralibs=""
 darwin="yes"
 ;;
+CYGWIN*)
+v4l="no"
+audio_oss="yes"
+extralibs=""
+cygwin="yes"
+test -f /usr/include/inttypes.h || \
+test -f /usr/local/include/inttypes.h || \
+echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
+     "/usr/include/inttypes.h !!!"
+;;
 *) ;;
 esac
 
@@ -454,6 +465,11 @@ if test "$win32" = "yes" ; then
   echo "CONFIG_WIN32=yes" >> config.mak
 fi
 
+if test "$cygwin" = "yes" ; then
+  # setup correct exesuffix
+  echo "CONFIG_WIN32=yes" >> config.mak
+fi
+
 if test "$darwin" = "yes"; then
   echo "#define CONFIG_DARWIN 1"  >> $TMPH
   echo "CONFIG_DARWIN=yes" >> config.mak