add --use-3dnow argument
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Nov 2001 23:08:22 +0000 (23:08 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Nov 2001 23:08:22 +0000 (23:08 +0000)
README
configure.in

diff --git a/README b/README
index 5f0aeb1..4b745eb 100644 (file)
--- a/README
+++ b/README
@@ -81,6 +81,12 @@ crashes when built with this option you will have to go back and
 configure without --sse-os.  Note that --disable-asm-optimizations
 overrides --sse-os.
 
+--use-3dnow : If you are building for an AMD CPU which has 3DNOW!
+support, you can use this flag to enable some assembly routines
+which use 3DNOW! instructions.  There have been some reports that
+they may cause flac to crash, which is why it is not turned on
+by default.
+
 
 ===========================
 Building with Makefile.lite
index 722699a..5310a84 100644 (file)
@@ -76,6 +76,17 @@ if test x$sse_os = xtrue ; then
 AC_DEFINE(FLAC__SSE_OS)
 fi
 
+[  --use-3dnow                 Enable 3DNOW! support],
+[case "${enableval}" in
+       yes) use_3dnow=true ;;
+       no)  use_3dnow=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --use-3dnow) ;;
+esac],[use_3dnow=false])
+AM_CONDITIONAL(FLaC__USE_3DNOW, test x$use_3dnow = xtrue)
+if test x$use_3dnow = xtrue ; then
+AC_DEFINE(FLAC__USE_3DNOW)
+fi
+
 AC_CHECK_LIB(ogg, ogg_stream_init,
              [LIBS="$LIBS -logg"; have_ogg=yes],
              [AC_MSG_WARN([*** Ogg development enviroment not installed - ogg support will not be built])])