AC_ARG_ENABLE(mmx,
[ --enable-mmx Enable MMX optimizations (default is no)],
[ if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi ])
+AC_ARG_ENABLE(debug,
+[ --enable-debug Enable debug mode (default is no)],
+[ if test x$enableval = xyes; then DEBUG=1; fi ])
+AC_ARG_ENABLE(stats,
+[ --enable-stats Enable printing of statistics (default is yes)],
+[ if test x$enableval != xno; then STATS=1; fi ])
+AC_ARG_ENABLE(optimizations,
+[ --enable-optimizations Enable compiler optimizations (default enabled)],
+[ if test x$enableval != xno; then OPTIMS=1; fi ])
SYS=${host_os}
AC_SUBST(ARCH)
AC_SUBST(PLUGINS)
AC_SUBST(ALIASES)
+AC_SUBST(DEBUG)
+AC_SUBST(STATS)
+AC_SUBST(OPTIMS)
AC_OUTPUT([Makefile include/config.h])
vlc version : ${VLC_VERSION}
system : ${SYS}
architecture : ${ARCH}
+debug mode : ${DEBUG}
+statistics : ${STATS}
+optimizations : ${OPTIMS}
plugins : ${PLUGINS}
vlc aliases : ${ALIASES}
"