diff --git a/bootstrap b/bootstrap index ce2fb91..8a11fbf 100755 --- a/bootstrap +++ b/bootstrap @@ -4,11 +4,20 @@ # bootstrap the build when checking out from CVS +# dodgy hack to use gmake if we're on bsd systems +if [ -x /usr/bin/gmake ]; then + MAKE=/usr/bin/gmake +elif [ -x /usr/local/bin/gmake ]; then + MAKE=/usr/local/bin/gmake +else + MAKE=make +fi + if [ "$1" = "clean" ]; then # clean up junk if [ -f Makefile ]; then - make distclean + $MAKE distclean fi find . -name Makefile.in -print0 | xargs -0 rm -f rm -f config.h.in aclocal.m4 install-sh missing mkinstalldirs \ diff --git a/configure.in b/configure.in index 1051021..98dabec 100644 --- a/configure.in +++ b/configure.in @@ -49,7 +49,7 @@ AC_PATH_X AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h float.h limits.h mntent.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h]) +AC_CHECK_HEADERS([sys/vt.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff --git a/src/rw_in_svgalib.c b/src/rw_in_svgalib.c index a6db516..c22ef21 100644 --- a/src/rw_in_svgalib.c +++ b/src/rw_in_svgalib.c @@ -1,31 +1,41 @@ -/* -Copyright (C) 1997-2001 Id Software, Inc. +/* $Id$ + * + * Copyright (C) 1997-2001 Id Software, Inc. + * Copyright (c) 2002 The Quakeforge Project. + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ #include #include #include -#include #include #include #include #include +#ifdef HAVE_SYS_VT_H +# include +#endif + #include "vga.h" #include "vgakeyboard.h" #include "vgamouse.h" diff --git a/src/rw_svgalib.c b/src/rw_svgalib.c index 538ebda..fe67b2f 100644 --- a/src/rw_svgalib.c +++ b/src/rw_svgalib.c @@ -1,22 +1,24 @@ -/* -Copyright (C) 1997-2001 Id Software, Inc. +/* $Id$ + * + * Copyright (C) 1997-2001 Id Software, Inc. + * Copyright (c) 2002 The Quakeforge Project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ /* ** RW_SVGALBI.C ** @@ -32,16 +34,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ** SWimp_SwitchFullscreen */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include -#include #include #include #include #include #include +#ifdef HAVE_SYS_VT_H +# include +#endif + #include "vga.h" #include "vgakeyboard.h" #include "vgamouse.h"