From: Josh Coalson Date: Tue, 13 Nov 2001 23:08:22 +0000 (+0000) Subject: add --use-3dnow argument X-Git-Tag: 1.2.0~2068 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c69f878b7994b278eb0f163b7f9f171e3ef0730d;hp=f98b70545d503ad0ef2dc3b417f8f8f613d2f55a;p=platform%2Fupstream%2Fflac.git add --use-3dnow argument --- diff --git a/README b/README index 5f0aeb1..4b745eb 100644 --- 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 diff --git a/configure.in b/configure.in index 722699a..5310a84 100644 --- a/configure.in +++ b/configure.in @@ -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])])