diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1f7d64d5e..2174a5e6c 100644 --- a/configure.in +++ b/configure.in @@ -207,6 +207,9 @@ LIBFFMPEG_CFLAGS="-DSIMPLE_IDCT -DHAVE_AV_CONFIG_H" AC_ARG_ENABLE(altivec, [ --disable-altivec use assembly codes for Motorola 74xx CPUs], enable_altivec=no, enable_altivec=yes) +AC_ARG_ENABLE(vis, [ --enable-vis use assembly codes for Sun UltraSPARC cpus], + enable_vis=yes, enable_vis=no) + if test x$enable_mlib = x; then AC_ARG_ENABLE(mlib, [ --disable-mlib make a version not using mediaLib], @@ -392,6 +395,12 @@ AM_PATH_AALIB(1.2,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disa AM_CONDITIONAL(HAVE_AA, test x$no_aalib != "xyes") dnl +dnl Check solaris framebuffer device support +dnl +AC_CHECK_HEADER(sys/fbio.h, ac_have_sunfb=yes,) +AM_CONDITIONAL(HAVE_SUNFB, [test x"$ac_have_sunfb" = "xyes"]) + +dnl dnl Check linux framebuffer device support dnl AC_CHECK_HEADER(linux/fb.h, have_fb=yes,) @@ -809,6 +818,12 @@ case "$host_or_hostalias" in sparc-*) cpu_cflags="-mcpu=supersparc -mtune=supersparc" ;; sparc64-*) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;; esac + + if test x$enable_vis = xyes; then + AC_DEFINE(ENABLE_VIS) + cpu_cflags="-mcpu=ultrasparc" + fi + CFLAGS="$CFLAGS -O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" DEBUG_CFLAGS="$DEBUG_CFLAGS -O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" @@ -823,6 +838,12 @@ case "$host_or_hostalias" in sun4u) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;; *) cpu_cflags= ;; esac + + if test x$enable_vis = xyes; then + AC_DEFINE(ENABLE_VIS) + cpu_cflags="-mcpu=ultrasparc" + fi + cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" cc_debug_cflags="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" AC_DEFINE(FPM_SPARC) dnl uses gnu c asm extensions @@ -1197,6 +1218,9 @@ if test x"$no_x" != "xyes"; then x$ac_have_opengl = "xyes" -a x$ac_have_glu="xyes"; then echo " - OpenGL" fi + if test x$ac_have_sunfb = "xyes"; then + echo " - PGX64 (for Sun PGX64/PGX24 cards)" + fi fi if test x$no_aalib != "xyes"; then echo " - aa (Ascii ART)" |