shared="no"
CC="${CC-gcc}"
-CFLAGS="-Wall -I. -O4 -ffast-math -D__X264__"
+CFLAGS="-Wall -I. -D__X264__"
LDFLAGS=""
HAVE_GETOPT_LONG=1
pthread="no"
;;
--enable-debug)
- CFLAGS="$CFLAGS -g"
debug="yes"
;;
--enable-gprof)
VFW_LDFLAGS="$VFW_LDFLAGS -s"
fi
+if [ "$debug" == "yes" ]; then
+ CFLAGS="-O1 -g $CFLAGS"
+else
+ CFLAGS="-O4 -ffast-math $CFLAGS"
+fi
+
if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
echo "#define fseek fseeko" >> config.h
echo "#define ftell ftello" >> config.h