mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
Disable svga support when not building for 32-bit x86 (for now, anyway).
This commit is contained in:
parent
3e0aaea535
commit
96a507e8ea
1 changed files with 32 additions and 26 deletions
58
configure.ac
58
configure.ac
|
@ -81,6 +81,24 @@ case "$host_os" in
|
|||
;;
|
||||
esac
|
||||
|
||||
dnl Check for ia32
|
||||
AC_MSG_CHECKING(for an ia32 machine)
|
||||
case "${target}" in
|
||||
i?86-*-*)
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_MSG_CHECKING(to see if we should disable asm optimizations)
|
||||
AC_ARG_ENABLE(asmopt,
|
||||
[ --disable-asmopt disable assembler optimization],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_DEFINE(USE_INTEL_ASM, 1, [Define this if you want to use Intel assembly optimizations])
|
||||
ASM_ARCH=yes
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
;;
|
||||
*) AC_MSG_RESULT(no)
|
||||
esac
|
||||
AM_CONDITIONAL(ASM_ARCH, test "x$ASM_ARCH" = "xyes")
|
||||
|
||||
dnl ==================================================================
|
||||
dnl Checks for programs.
|
||||
dnl ==================================================================
|
||||
|
@ -760,14 +778,20 @@ if test "x$HAVE_SVGA" != xno; then
|
|||
AC_CHECK_HEADER(vga.h, HAVE_SVGA=yes, HAVE_SVGA=no)
|
||||
CPPFLAGS="$save_CPPFLAGS"
|
||||
|
||||
dnl Make sure -lvga works
|
||||
if test "x$HAVE_SVGA" = xyes; then
|
||||
AC_CHECK_LIB(vga, vga_getmousetype, SVGA_LIBS="$SVGA_LIBS -lvga"
|
||||
HAVE_SVGA=yes, HAVE_SVGA=no, [$SVGA_LIBS]
|
||||
)
|
||||
fi
|
||||
if test "x$HAVE_SVGA" != xyes; then
|
||||
SVGA_CFLAGS="" SVGA_LIBS=""
|
||||
if test "x$ASM_ARCH" = xyes; then
|
||||
dnl Make sure -lvga works
|
||||
if test "x$HAVE_SVGA" = xyes; then
|
||||
AC_CHECK_LIB(vga, vga_getmousetype, SVGA_LIBS="$SVGA_LIBS -lvga"
|
||||
HAVE_SVGA=yes, HAVE_SVGA=no, [$SVGA_LIBS]
|
||||
)
|
||||
fi
|
||||
if test "x$HAVE_SVGA" != xyes; then
|
||||
SVGA_CFLAGS="" SVGA_LIBS=""
|
||||
fi
|
||||
else
|
||||
HAVE_SVGA=no
|
||||
SVGA_CFLAGS=
|
||||
SVGA_LIBS=
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(HAVE_SVGA)
|
||||
|
@ -924,24 +948,6 @@ esac
|
|||
AM_CONDITIONAL(SYSTYPE_WIN32, test "x$SYSTYPE" = "xWIN32")
|
||||
AC_SUBST(WIN32_LIBS)
|
||||
|
||||
dnl Check for ia32
|
||||
AC_MSG_CHECKING(for an ia32 machine)
|
||||
case "${host}" in
|
||||
i?86-*-*)
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_MSG_CHECKING(to see if we should disable asm optimizations)
|
||||
AC_ARG_ENABLE(asmopt,
|
||||
[ --disable-asmopt disable assembler optimization],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_DEFINE(USE_INTEL_ASM, 1, [Define this if you want to use Intel assembly optimizations])
|
||||
ASM_ARCH=yes
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
;;
|
||||
*) AC_MSG_RESULT(no)
|
||||
esac
|
||||
AM_CONDITIONAL(ASM_ARCH, test "x$ASM_ARCH" = "xyes")
|
||||
|
||||
dnl ==================================================================
|
||||
dnl Checks for sound
|
||||
dnl ==================================================================
|
||||
|
|
Loading…
Reference in a new issue