[xiph-commits] r15746 - trunk/vorbis
giles at svn.xiph.org
giles at svn.xiph.org
Thu Mar 5 23:55:10 PST 2009
Author: giles
Date: 2009-03-05 23:55:09 -0800 (Thu, 05 Mar 2009)
New Revision: 15746
Modified:
trunk/vorbis/configure.ac
Log:
Check that the compiler supports -mv8 before adding it to the command
line on sun sparc. Issue #1458.
I haven't recieved confirmation this resolves the issue, but I don't see
how it can do much harm.
Modified: trunk/vorbis/configure.ac
===================================================================
--- trunk/vorbis/configure.ac 2009-03-05 22:23:02 UTC (rev 15745)
+++ trunk/vorbis/configure.ac 2009-03-06 07:55:09 UTC (rev 15746)
@@ -162,9 +162,18 @@
CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
sparc-sun-*)
- DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char -mv8"
- CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
- PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
+ sparc_cpu=""
+ AC_MSG_CHECKING([if gcc supports -mv8])
+ old_cflags="$CFLAGS"
+ CFLAGS="$CFLAGS -mv8"
+ AC_TRY_COMPILE(, [return 0;], [
+ AC_MSG_RESULT([yes])
+ sparc_cpu="-mv8"
+ ])
+ CFLAGS="$old_cflags"
+ DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
+ CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
+ PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
*-*-darwin*)
DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
More information about the commits
mailing list