a52="yes"
a52bin="no"
win32="no"
+cygwin="no"
lshared="no"
extralibs="-lm"
simpleidct="yes"
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
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
--- /dev/null
+#ifndef _CYGWIN_INTTYPES_H
+#define _CYGWIN_INTTYPES_H
+/* /usr/include/inttypes.h for CYGWIN
+ * Copyleft 2001-2002 by Felix Buenemann
+ * <atmosfear at users.sourceforge.net>
+ *
+ * Should be installed into /usr/include
+ * as inttypes.h
+ */
+#if 0
+typedef char * caddr_t;
+typedef char int8_t;
+typedef unsigned char u_int8_t;
+typedef short int16_t;
+typedef unsigned short u_int16_t;
+typedef int int32_t;
+typedef unsigned int u_int32_t;
+typedef long long int64_t;
+typedef unsigned long long u_int64_t;
+typedef int32_t register_t;
+#else
+#include <sys/types.h>
+#endif /* 0/1 */
+typedef u_int8_t uint8_t;
+typedef u_int16_t uint16_t;
+typedef u_int32_t uint32_t;
+typedef u_int64_t uint64_t;
+#endif /* _CYGWIN_INTTYPES_H */
+
/* if none, if is finished */
if (file_index < 0) {
if (stream_no_data) {
-#ifndef CONFIG_WIN32
-#ifndef __BEOS__
+#ifndef CONFIG_WIN32 /* no usleep in VisualC ? */
+#ifdef __BEOS__
+ snooze(10 * 1000); /* mmu_man */ /* in microsec */
+#elif defined(__CYGWIN__)
+ usleep(10 * 1000);
+#else
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 1000 * 1000 * 10;
nanosleep(&ts, 0);
-#else
- snooze(10 * 1000); /* mmu_man */ /* in microsec */
#endif
#endif
stream_no_data = 0;
# create the data directory if it does not exists
mkdir -p $datadir
-function do_ffmpeg ()
+do_ffmpeg()
{
f="$1"
shift
echo $ffmpeg -bitexact $*
$ffmpeg -bitexact -benchmark $* > $datadir/bench.tmp
- md5sum $f >> $logfile
+ md5sum -b $f >> $logfile
expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
echo `cat $datadir/bench2.tmp` $f >> $benchfile
}
-function do_ffmpeg_crc ()
+do_ffmpeg_crc()
{
f="$1"
shift