mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-16 08:41:42 +00:00
autoconf now looks for lib3dfxgl.so to figure out whether or not to build
the -glide targets (now named -3dfx..) Thid doesn't mean that I have actually written the makefile stuff for these targets, but rather that I have written the foundation needed to create them.
This commit is contained in:
parent
36b6af4cd2
commit
195ac96784
4 changed files with 263 additions and 172 deletions
1
TODO
1
TODO
|
@ -1 +1,2 @@
|
|||
Global: sed 's/\<sprintf *(\([^,]\+\),/sprintf(\1, sizeof(\1)),/g' to fix possible buffer overruns
|
||||
configure.in: clean up the intel -mcpu stuff
|
||||
|
|
|
@ -2,9 +2,9 @@ ifneq ($(HAS_OGL),)
|
|||
GLQUAKE =$(BIN_PREFIX)-gl
|
||||
endif
|
||||
|
||||
# XXX add glide
|
||||
ifneq ($(HAS_GLIDE),)
|
||||
GLIDEQUAKE= $(BIN_PREFIX)-glide
|
||||
# FIX: Add 3dfxgl targets
|
||||
ifneq ($(HAS_TDFXGL),)
|
||||
TDFXQUAKE= $(BIN_PREFIX)-3dfx
|
||||
endif
|
||||
|
||||
ifneq ($(HAS_X11),)
|
||||
|
|
21
configure.in
21
configure.in
|
@ -187,6 +187,27 @@ AC_SUBST(HAS_GLIDE)
|
|||
AC_SUBST(GLIDE_CFLAGS)
|
||||
AC_SUBST(GLIDE_LDFLAGS)
|
||||
|
||||
TDFXGL_LDFLAGS=""
|
||||
AC_ARG_ENABLE(3dfxgl,
|
||||
[ --enable-3dfxgl=DIR Use lib3dfxgl.so found in DIR],
|
||||
HAS_TDFXGL=$withval, HAS_TDFXGL=auto
|
||||
)
|
||||
if test "x$HAS_3DFXGL" != xno; then
|
||||
if test "x$HAS_3DFXGL" != xauto; then
|
||||
TDFXGL_LDFLAGS="-L$withval"
|
||||
fi
|
||||
dnl FIX: is it safe to assume test has -o ?
|
||||
if test "x$HAS_GLIDE" != x; then
|
||||
if test "x$HAS_OGL" != x; then
|
||||
if test "x$HAS_VGA" != x; then
|
||||
AC_CHECK_LIB(3dfxgl, glColor4f, HAS_TDFXGL=yes, HAS_TDFXGL=)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(HAS_TDFXGL)
|
||||
AC_SUBST(TDFXGL_LDFLAGS)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_CHECK_FUNC(stricmp,
|
||||
|
|
Loading…
Reference in a new issue