]> git.sesse.net Git - vlc/blobdiff - configure.in
* Added --enable-debug, --enable-stats and --disable-optims (sam could
[vlc] / configure.in
index 615a9041ad6d22c966a72472ede6f997e29f62bf..1e6ee23b982b1fd0170263152fef6fa56aa9bc6b 100644 (file)
@@ -72,6 +72,15 @@ AC_ARG_ENABLE(ppro,
 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}
 
@@ -116,6 +125,9 @@ AC_SUBST(SYS)
 AC_SUBST(ARCH)
 AC_SUBST(PLUGINS)
 AC_SUBST(ALIASES)
+AC_SUBST(DEBUG)
+AC_SUBST(STATS)
+AC_SUBST(OPTIMS)
 
 AC_OUTPUT([Makefile include/config.h])
 
@@ -125,6 +137,9 @@ vlc configuration
 vlc version           : ${VLC_VERSION}
 system                : ${SYS}
 architecture          : ${ARCH}
+debug mode            : ${DEBUG}
+statistics            : ${STATS}
+optimizations         : ${OPTIMS}
 plugins               : ${PLUGINS}
 vlc aliases           : ${ALIASES}
 "