Commit graph

146 commits

Author SHA1 Message Date
Bill Currie
ef81af9245 the "two birds with one stone" commit
1) when /not/ building static plugins, the plugin info name is, once again,
   PluginInfo, but is still type_name_PluginInfo for static plugins. This
   allows plugins to be symlinked (highly desirable for the debian packages,
   and likely others). This also requires plugins to /not/ be loaded with
   RTLD_GLOBAL.
2) because of 1, snd_alsa_0_9 has to explicitly load libasound itself. This
   just happens to fix my segfault on shutdown in RedHat 6.2.
2002-04-19 20:08:54 +00:00
Bill Currie
e677b4acf3 correct some cut&paste errors pointed out by Jaq 2002-04-17 06:33:48 +00:00
Bill Currie
55a5c39187 Turns out that on PPC, va_list is an array (effectivly typedef struct
__va_list_tag va_list[1];) which causes grief when attempting to reuse
va_list variables (eg, in vsnprintf retry loops). This is the reason for
MisterP's crashes as the pointers in va_list no longer point to valid data.

acinclude.m4:
	shamelessly steal the va_list, va_copy and __va_copy macros from
	cdda2wav but modified so AC_DEFINE includes the description (so
	acconfig.h can remain gone)
configure.ac:
	use AC_TYPE_VA_LIST, AC_FUNC_VA_COPY and AC_FUNC_VA__COPY
dstring.c:
	stash the incoming va_list args in a temp var before calling vsnprintf
	then restore them each time before retrying, but only if va_list is an
	array (hopefully this is ok for when va_list is a structure)
2002-04-15 22:17:02 +00:00
Bill Currie
9fa9f6af52 need to explicitly include sys/uio.h on older libc 2002-04-15 14:35:10 +00:00
Bill Currie
2e69aa787c need to use $CC instead of raw gcc when testing the version 2002-04-13 19:52:24 +00:00
Bill Currie
97bc11a902 Closes: #26
include Xlib.h when checking for xf86vmode.h and xf86dga.h
2002-04-12 19:02:06 +00:00
Bill Currie
0a62c2687a compress progs files (and symbol tables) when zlib is available 2002-04-10 19:11:19 +00:00
Bill Currie
ba1da79bd6 add --with-arch to give more control over which architecture gcc compiles
for. this is espeically useful when (eg) config.guess provies the arch as
i686 but a i586 is more correct.
2002-04-10 18:22:46 +00:00
Bill Currie
d2954ce4d0 explicitly require bison and flex 2002-04-10 17:56:00 +00:00
Bill Currie
bad8b0fcf2 make the linux/solaris variant of CPP_NAME the default 2002-04-07 06:00:13 +00:00
Bill Currie
e49672591a oops, sh isn't C :) 2002-04-07 05:53:33 +00:00
Bill Currie
e230d1a8c3 make CPP_NAME get set for solaris 2002-04-07 05:52:27 +00:00
Bill Currie
568e7ecdb2 make pak get built with the rest of the system 2002-03-18 22:01:51 +00:00
Bill Currie
5e74e7a158 fixes for most recent autoconf. fortunatly ac 2.13 is happy with them so
acconfig.h is now gone :)
2002-03-14 20:49:16 +00:00
Bill Currie
f945907cff another missed gib reference 2002-03-08 21:04:46 +00:00
Bill Currie
26d7463be7 the majority of raptor's sgi build patch. I'll look at the last two bits
(server.c and vid_sdl.c) later.
2002-03-03 06:03:51 +00:00
Bill Currie
8eba01b3d3 another, probably vain, attempt at getting qf to at least /work/ with
gcc- 2.96 :/
2002-02-26 05:18:08 +00:00
Bill Currie
7db3eaeefe more problems pointed out by raorn 2002-02-23 17:43:58 +00:00
Bill Currie
f3944a8eda fix a couple mistakes pointed out by raorn 2002-02-23 17:09:41 +00:00
Bill Currie
29706477d4 gl_driver default is now configurable 2002-02-22 08:55:24 +00:00
Bill Currie
d47533ad2e hopefully fix strcasecmp and strnlen for those systems that don't hide them 2002-02-06 19:06:05 +00:00
Bill Currie
f2a8f8ff28 make cpp command line selection more intelligent. This should take care of
the stuck cpp problem on openbsd.
2002-02-05 18:40:47 +00:00
Bill Currie
8b33d29848 make sure -fno-strict-aliasing gets set for gcc 2.96 (dunno if this will
work, but worth a try)
2002-01-23 04:12:53 +00:00
Bill Currie
f882e8400e enable -fstrict-aliasing by default for gcc 3 2002-01-23 03:13:31 +00:00
Bill Currie
0eea94723b get qfcc to build for win32 (cross building will need QFCC to be
over-ridden)
2002-01-22 07:10:18 +00:00
Bill Currie
cfa3591a76 d'oh, should be installing into fs_sharepath :P 2002-01-22 06:22:52 +00:00
Bill Currie
8a24b28d97 scary, but the only changes qfcc needed to build as part of quakeforge was
to auto-substitued the libs and headers.

 o  unconditionally build qfcc (for now, anyway) when building quakeforge
    (needed for cs-code compilation)
 o  when built as part of quakeforge (qfcc should still be buildable
    independently) always enable cpp
 o  autoconfiscate the client-side code
 o  build the client-side code using the built qfcc
 o  install the client-side code in $(datadir)/quakeforge/id1
2002-01-22 05:48:03 +00:00
Bill Currie
9dedd21158 start getting the shared console code working 2002-01-16 16:27:56 +00:00
Bill Currie
a619739bab fix the server console for static builds (hmm, non-curses only?) 2001-12-02 20:11:21 +00:00
Bill Currie
0be2a31f2e lots of code cleanup. Merge Mod_LoadAllSkins, merge the sw32 model loading
code into the sw model loading code, remove all refs to r_pixbytes from the
sw renderer (it was never anything but 1), kill libQFmodels_sw32, remove
all the 16 bit code from the 8 bit sw renderer.
2001-11-21 19:13:53 +00:00
Chris Ison
3e34fc83e4 -3dfx re-enabled 2001-11-21 02:36:48 +00:00
Bill Currie
60289d86e4 new option: --enable-strict-aliasing which adds -fstrict-aliasing to the
gcc CFLAGS when optimizing. This does /very/ nice things to the progs code
and seems to work in general (which means gcc 2.96 shouldsn't be such a cow),
but I am not yet confident enough to enable it by default (would probably
need gcc version chedking for it anyway).
2001-11-20 04:50:21 +00:00
Jeff Teunissen
9579b07349 Take the texinfo makefile out of configure. 2001-10-31 11:12:00 +00:00
Bill Currie
85c9e0ab1e more externs cleaned up 2001-10-29 17:46:03 +00:00
Bill Currie
33a180099b hopefully fix --enable-optimize 2001-10-27 00:23:51 +00:00
Bill Currie
552a486d87 fix the libQFrenderer_sw.lai installation error. libtool requires -rpath
for /any/ installed lib, static or not.
2001-10-24 17:54:56 +00:00
Bill Currie
b5341f0d13 we now compile and link with -fno-common. this cleans up the multiple,
uninitialized declarations of variables.
2001-10-23 16:55:23 +00:00
Chris Ison
70619f195e added compile switch to cygwin-mingw32 and added win32 defs 2001-10-21 21:20:59 +00:00
Chris Ison
6b53cbf5dc changes to get mingw builds happening under cygwin 2001-10-17 10:41:25 +00:00
Bill Currie
8557d50235 redundant checks cleanup 2001-10-16 18:38:28 +00:00
Bill Currie
fdf0313f42 remove a redundant check for vga.h 2001-10-16 17:02:40 +00:00
Jeff Teunissen
ce740fb4ec Joystick target fixed. 2001-10-16 05:06:31 +00:00
Jeff Teunissen
b89ff39bd3 Ooops, forgot to nuke a couple lines from configure. 2001-10-15 22:33:35 +00:00
Jeff Teunissen
2e4d8d1473 Makefile fixes -- video driver libs are gone. 2001-10-15 22:32:28 +00:00
Bill Currie
371c11173b make plugindir actually /work/ (ie, it can be overridden at install time) 2001-10-15 20:35:47 +00:00
Bill Currie
579d78407d config results report cleanup 2001-10-11 23:21:40 +00:00
Bill Currie
483c56b7a5 put the .lsm file in the top level 2001-10-11 05:10:46 +00:00
Bill Currie
a192f049f6 fix our -g -O2 -g -O3 fun 2001-10-11 03:04:28 +00:00
Bill Currie
6cd058738e d'oh, forgot to AC_SUBST(PLUGIN_RPATH) 2001-10-10 18:40:06 +00:00
Bill Currie
8b2da8cbec make the static plugins link properly with older libtool 2001-10-10 15:44:35 +00:00
Bill Currie
eee1aaf283 static plugins (--with-static-plugins to force on, --without-static-plugins
to force off, defaults to off for *nix and on for win32). does not work yet
due to lack of support in libs/util/plugin.c, but that's next.
2001-10-10 05:52:14 +00:00
Chris Ison
188688f835 fixed missing $ 2001-10-09 22:26:38 +00:00
Chris Ison
15bdd4ad67 disabled -lm checking for cygwin and mingw32 and added plugin_LDFLAGS and plugin_LIBADD for win32 builds 2001-10-09 21:36:57 +00:00
Bill Currie
d4ad0cd659 whitespace 2001-10-08 05:52:56 +00:00
Bill Currie
6eb4958952 don't attempt to build xmms support in mingw 2001-10-08 04:24:27 +00:00
Bill Currie
c7d1f961c3 INSTALL:
move the bootstrap comment to where people are more likely to notice it
bootstrap:
	hopefully put the auto*/libtool commands in the right order
configure.ac:
	make enable/disable help messages less confusing
2001-10-08 03:41:23 +00:00
Chris Ison
2f8efd7360 changes to get mingw32 sw clients to compile under cygwin 2001-10-07 12:45:47 +00:00
Bill Currie
963c7592ee clean up zlib checking a little. this should fix HAVE_ZLIB getting defined
when it shouldn't be
2001-10-06 01:07:24 +00:00
Bill Currie
a39ccf4a34 XMMS support from _Muz_ (Alexis Paul Musgrave <muz@cwcom.net>) 2001-10-05 19:36:35 +00:00
Bill Currie
bbc83c30ca hey, it segs, but who cares? so does nq-glx -dedicated :P 2001-10-03 19:52:03 +00:00
Bill Currie
e0a1947565 fix a typo that prevented --with-servers working 2001-10-03 19:05:45 +00:00
Bill Currie
95d3600452 fix skybox/skydom map vis issues. I hope this works on all drivers. 2001-10-03 02:51:30 +00:00
Bill Currie
b866bcae61 seems automake isn't too happy about nested conditionals and main vars 2001-10-02 22:36:08 +00:00
Bill Currie
32643c3ec8 the forced libz.so link doesn't work well with libtool, so if X11 has an old
libz.a, just give up on compression support making a lot of noise in the
process.
2001-10-02 04:55:05 +00:00
Bill Currie
9102fceef7 remove debug info 2001-10-02 02:35:33 +00:00
Chris Ison
284da345ef fixes to get qf to compile cygwin->mingw32 2001-10-02 01:53:26 +00:00
Bill Currie
f5c6312743 --with-server is now --with-servers and works like --with-clients (master,
nq and qw with nq defaulting to no). add DISK to SOUND_TYPES output. try to
fix AR gaff
2001-10-01 22:52:38 +00:00
Bill Currie
27d302f9c9 bootstrap:
make it so bootstrap can be run out of dir (like configure)
configure.ac:
	evil hack to get $AR working with older libtool (1.3)
2001-10-01 20:49:38 +00:00
Bill Currie
20f702b5fe fix out-of-tree builds for asm (this also sets up ASFLAGS more correctly) 2001-10-01 18:02:46 +00:00
Jeff Teunissen
edea800aeb Okay, WildCode, check this. 2001-09-30 22:59:28 +00:00
Chris Ison
b0dc19310a more compile under cygwin patches 2001-09-30 13:05:20 +00:00
Chris Ison
60107fd19c changes to get cygwin to compile server. still debugging result 2001-09-29 09:39:27 +00:00
Bill Currie
8e27422c72 partial fixes for mingw cross builds. still have issues with ar :( 2001-09-28 16:03:45 +00:00
Jeff Teunissen
d63243380f Aaaaaaand, it's done!
Special note: I hope to never do this again. :)
2001-09-28 10:31:20 +00:00
Jeff Teunissen
e9c9c8bab6 fix up installs for -svga. 2001-09-28 06:55:27 +00:00
Jeff Teunissen
f37c446a29 Great idea, Deek, commit the makefiles w/o the configure needed for
them. !lart Deek
2001-09-28 05:41:19 +00:00
Bill Currie
37495db521 this should work for older alsa 0.9 where asoundlib.h is still in sys instead of alsa 2001-09-27 17:12:17 +00:00
Chris Ison
9eae11b67e added --disable-oss 2001-09-26 08:00:13 +00:00
Jeff Teunissen
e110f6da83 -3dfx is gone, pending someone to work on it again. Most of the stuff it
did specially will be folded into -glx.
2001-09-25 23:58:23 +00:00
Chris Ison
0efd28abcc trying to get bootstrap to work in cygwin 2001-09-25 23:04:13 +00:00
Bill Currie
8b15be4ced alsa detection improvement sfor latest 0.9, add the qw master package, and
get the server packages building
2001-09-24 23:18:05 +00:00
Jeff Teunissen
969961628d Helping out with the fixup of win32 builds on cygwin's new,
apparently very weird, automake version 1.5.
2001-09-24 21:22:25 +00:00
Bill Currie
c8ab7d04ef fix two bugs with glx extension checking: HAVE_GLX wasn't getting into
config.h and GLX_ARB_get_proc_address is not (any longer?) defined by mesa.
2001-09-23 03:41:05 +00:00
Bill Currie
8b8ce51085 GameSpy, eat your heart out :) (thanks, James) 2001-09-18 03:24:26 +00:00
Ragnvald Maartmann-Moe IV
c6266aba36 sw32. Flee in terror. This'll break compilation for everything until -sdl32 compiles. sw32 wont work for a while either, so don't get overly excited yet. 2001-08-25 02:47:11 +00:00
Adam Olsen
bd847e73f1 Add support for dumping backtraces. 2001-08-23 23:34:38 +00:00
Bill Currie
79be73f507 we now require sdl 1.2 for sdl support 2001-08-23 20:28:41 +00:00
Adam Olsen
cad42cbc78 Put the sound renderer in it's proper place: as a full-fledged plugin.
Bugs expected.  Please report them :)
2001-08-23 04:01:46 +00:00
Bill Currie
62d0845528 make --enable-debug the default 2001-08-22 22:02:15 +00:00
Adam Olsen
1314c89b6c - add libs/gamecode/builtins subdir, with libQFgamecode_builtins.la
- add .gitignore files
- fix building :)
2001-08-21 22:34:20 +00:00
Adam Olsen
9ea52e8239 Move the gamecode engine into a subdir. 2001-08-21 21:05:26 +00:00
Bill Currie
b645289c9b fix lex detection 2001-08-16 23:12:14 +00:00
Bill Currie
0d2b727103 default fbdev to enabled again 2001-08-16 22:32:57 +00:00
Adam Olsen
e3590642fb Moved the sound renderer into a seperate lib. You'll need to rerun
configure, else it won't build said lib and you'll get errors loading
sound plugins.
2001-08-15 21:03:10 +00:00
Bill Currie
0f56fea4e3 well, now that we're stuck with autoconf 2.50, we don't need those lines any
more
2001-08-04 06:00:23 +00:00
Bill Currie
8517e41635 due to libtool, we are forced to require autoconf 2.50 :/ 2001-08-04 05:34:20 +00:00
Renamed from configure.in (Browse further)