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:
Joseph Carter 1999-12-30 10:35:52 +00:00
parent 36b6af4cd2
commit 195ac96784
4 changed files with 263 additions and 172 deletions

1
TODO
View file

@ -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

View file

@ -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),)

407
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -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,