mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Removed old configure stuff, it's merged now
This commit is contained in:
parent
4dd9f74fc0
commit
9438b77fdf
8 changed files with 0 additions and 3368 deletions
|
@ -1,95 +0,0 @@
|
||||||
/*
|
|
||||||
Compiler/Machine-Specific Configuration
|
|
||||||
*/
|
|
||||||
#ifndef _CONFIG_H_
|
|
||||||
#define _CONFIG_H_
|
|
||||||
@TOP@
|
|
||||||
/* "Proper" package name */
|
|
||||||
#undef PROGRAM
|
|
||||||
|
|
||||||
/* Define this to the Quake version you support */
|
|
||||||
#undef QUAKE_VERSION
|
|
||||||
|
|
||||||
/* Define this to the QSG standard version you support */
|
|
||||||
#undef QSG_VERSION
|
|
||||||
|
|
||||||
/* Define if you want to use QF-style defaults instead of Id-style */
|
|
||||||
#undef NEWSTYLE
|
|
||||||
|
|
||||||
/* Define this to the location of the global config file */
|
|
||||||
#undef FS_GLOBALCFG
|
|
||||||
|
|
||||||
/* Define this to the shared game directory root */
|
|
||||||
#undef FS_SHAREPATH
|
|
||||||
|
|
||||||
/* Define this to the unshared game directory root */
|
|
||||||
#undef FS_USERPATH
|
|
||||||
|
|
||||||
/* Define this to the base game for the engine to load */
|
|
||||||
#undef BASEGAME
|
|
||||||
|
|
||||||
/* Define this if you want to use Intel assembly optimizations */
|
|
||||||
#undef USE_INTEL_ASM
|
|
||||||
|
|
||||||
/* Define this if you have a Linux-style CD-ROM API */
|
|
||||||
#undef USE_LINUX_CD
|
|
||||||
|
|
||||||
/* Define this if you have a BSD-style CD-ROM API */
|
|
||||||
#undef USE_BSD_CD
|
|
||||||
|
|
||||||
/* Define if you have the XFree86 DGA extension */
|
|
||||||
#undef HAVE_DGA
|
|
||||||
|
|
||||||
/* Define if you have the XFree86 VIDMODE extension */
|
|
||||||
#undef HAVE_VIDMODE
|
|
||||||
|
|
||||||
/* Define this if you have GLX */
|
|
||||||
#undef HAVE_GLX
|
|
||||||
|
|
||||||
/* Define this if you have 3dfx */
|
|
||||||
#undef HAVE_TDFXGL
|
|
||||||
|
|
||||||
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
|
|
||||||
#undef HAVE_GL_COLOR_INDEX8_EXT
|
|
||||||
|
|
||||||
/* Define this if you are using a version of Mesa with X mode change support */
|
|
||||||
#undef HAVE_XMESA
|
|
||||||
|
|
||||||
/* Define this if you want IPv6 support */
|
|
||||||
#undef HAVE_IPV6
|
|
||||||
|
|
||||||
/* Define this if C symbols are prefixed with an underscore */
|
|
||||||
#undef HAVE_SYM_PREFIX_UNDERSCORE
|
|
||||||
|
|
||||||
/* Define this if your system has socklen_t */
|
|
||||||
#undef HAVE_SOCKLEN_T
|
|
||||||
|
|
||||||
/* Define this if your system has size_t */
|
|
||||||
#undef HAVE_SIZE_T
|
|
||||||
|
|
||||||
/* Define this if you have ss_len member in struct sockaddr_storage (BSD) */
|
|
||||||
#undef HAVE_SS_LEN
|
|
||||||
|
|
||||||
/* Define this if you have sin6_len member in struct sockaddr_in6 (BSD) */
|
|
||||||
#undef HAVE_SIN6_LEN
|
|
||||||
|
|
||||||
/* Define this if you have sa_len member in struct sockaddr (BSD) */
|
|
||||||
#undef HAVE_SA_LEN
|
|
||||||
|
|
||||||
/* Define if you have the dlopen function. */
|
|
||||||
#undef HAVE_DLOPEN
|
|
||||||
|
|
||||||
/* Define if you have zlib */
|
|
||||||
#undef HAVE_ZLIB
|
|
||||||
|
|
||||||
/* If your version of OpenGL uses APIENTRY, define GLAPIENTRY to be APIENTRY */
|
|
||||||
#undef GLAPIENTRY
|
|
||||||
|
|
||||||
/* Define this to something sane if you don't have stricmp */
|
|
||||||
#undef stricmp
|
|
||||||
|
|
||||||
/* Define this if FPOS_T is a struct */
|
|
||||||
#undef HAVE_FPOS_T_STRUCT
|
|
||||||
|
|
||||||
@BOTTOM@
|
|
||||||
#endif // _CONFIG_H_
|
|
279
nq/acinclude.m4
279
nq/acinclude.m4
|
@ -1,279 +0,0 @@
|
||||||
dnl check for fields in a structure
|
|
||||||
dnl
|
|
||||||
dnl AC_HAVE_STRUCT_FIELD(struct, field, headers)
|
|
||||||
|
|
||||||
AC_DEFUN(AC_HAVE_STRUCT_FIELD, [
|
|
||||||
define(cache_val, translit(ac_cv_type_$1_$2, [A-Z ], [a-z_]))
|
|
||||||
AC_CACHE_CHECK([for $2 in $1], cache_val,[
|
|
||||||
AC_TRY_COMPILE([$3],[$1 x; x.$2;],
|
|
||||||
cache_val=yes,
|
|
||||||
cache_val=no)])
|
|
||||||
if test "$cache_val" = yes; then
|
|
||||||
define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
|
|
||||||
AC_DEFINE(foo, 1, [Define if $1 has field $2.])
|
|
||||||
undefine(foo)
|
|
||||||
fi
|
|
||||||
undefine(cache_val)
|
|
||||||
])
|
|
||||||
# Configure paths for SDL
|
|
||||||
# Sam Lantinga 9/21/99
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# stolen back from Frank Belew
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# Shamelessly stolen from Owen Taylor
|
|
||||||
|
|
||||||
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AM_PATH_SDL,
|
|
||||||
[dnl
|
|
||||||
dnl Get the cflags and libraries from the sdl-config script
|
|
||||||
dnl
|
|
||||||
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
|
|
||||||
sdl_prefix="$withval", sdl_prefix="")
|
|
||||||
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
|
|
||||||
sdl_exec_prefix="$withval", sdl_exec_prefix="")
|
|
||||||
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
|
|
||||||
, enable_sdltest=yes)
|
|
||||||
|
|
||||||
if test x$sdl_exec_prefix != x ; then
|
|
||||||
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
|
|
||||||
if test x${SDL_CONFIG+set} != xset ; then
|
|
||||||
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test x$sdl_prefix != x ; then
|
|
||||||
sdl_args="$sdl_args --prefix=$sdl_prefix"
|
|
||||||
if test x${SDL_CONFIG+set} != xset ; then
|
|
||||||
SDL_CONFIG=$sdl_prefix/bin/sdl-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
|
|
||||||
min_sdl_version=ifelse([$1], ,0.11.0,$1)
|
|
||||||
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
|
||||||
no_sdl=""
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
no_sdl=yes
|
|
||||||
else
|
|
||||||
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
|
||||||
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
|
||||||
|
|
||||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
if test "x$enable_sdltest" = "xyes" ; then
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
ac_save_LIBS="$LIBS"
|
|
||||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
||||||
LIBS="$LIBS $SDL_LIBS"
|
|
||||||
dnl
|
|
||||||
dnl Now check if the installed SDL is sufficiently new. (Also sanity
|
|
||||||
dnl checks the results of sdl-config to some extent
|
|
||||||
dnl
|
|
||||||
rm -f conf.sdltest
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <SDL/SDL.h>
|
|
||||||
|
|
||||||
char*
|
|
||||||
my_strdup (char *str)
|
|
||||||
{
|
|
||||||
char *new_str;
|
|
||||||
|
|
||||||
if (str)
|
|
||||||
{
|
|
||||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
|
||||||
strcpy (new_str, str);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
new_str = NULL;
|
|
||||||
|
|
||||||
return new_str;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int major, minor, micro;
|
|
||||||
char *tmp_version;
|
|
||||||
|
|
||||||
/* This hangs on some systems (?)
|
|
||||||
system ("touch conf.sdltest");
|
|
||||||
*/
|
|
||||||
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
|
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
||||||
tmp_version = my_strdup("$min_sdl_version");
|
|
||||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
||||||
printf("%s, bad version string\n", "$min_sdl_version");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($sdl_major_version > major) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
|
|
||||||
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
|
|
||||||
printf("*** best to upgrade to the required version.\n");
|
|
||||||
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
|
|
||||||
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
|
|
||||||
printf("*** config.cache before re-running configure\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test "x$no_sdl" = x ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
ifelse([$2], , :, [$2])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
echo "*** The sdl-config script installed by SDL could not be found"
|
|
||||||
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
|
|
||||||
echo "*** your path, or set the SDL_CONFIG environment variable to the"
|
|
||||||
echo "*** full path to sdl-config."
|
|
||||||
else
|
|
||||||
if test -f conf.sdltest ; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
echo "*** Could not run SDL test program, checking why..."
|
|
||||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
||||||
LIBS="$LIBS $SDL_LIBS"
|
|
||||||
AC_TRY_LINK([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <SDL/SDL.h>
|
|
||||||
], [ return 0; ],
|
|
||||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
|
||||||
echo "*** that the run-time linker is not finding SDL or finding the wrong"
|
|
||||||
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
|
|
||||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
||||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
||||||
echo "*** is required on your system"
|
|
||||||
echo "***"
|
|
||||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
|
||||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
|
||||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
||||||
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
|
|
||||||
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
|
|
||||||
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
SDL_CFLAGS=""
|
|
||||||
SDL_LIBS=""
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
fi
|
|
||||||
AC_SUBST(SDL_CFLAGS)
|
|
||||||
AC_SUBST(SDL_LIBS)
|
|
||||||
rm -f conf.sdltest
|
|
||||||
])
|
|
||||||
|
|
||||||
# Configure paths for SDL-GL
|
|
||||||
# Jeff Teunissen 11 Aug 2000
|
|
||||||
# stolen from Sam Lantinga
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# stolen back from Frank Belew
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# Shamelessly stolen from Owen Taylor
|
|
||||||
|
|
||||||
dnl AM_CHECK_SGL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
dnl Test for SDL 1.1.x, and define SGL_CFLAGS and SGL_LIBS
|
|
||||||
dnl ***MUST*** be run _after_ checking for SDL 1.0x, if used.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AM_CHECK_SGL,
|
|
||||||
[dnl
|
|
||||||
dnl Get the cflags and libraries from the sdl-config script
|
|
||||||
dnl
|
|
||||||
min_sdl_version=ifelse([$1], ,1.1.0,$1)
|
|
||||||
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
|
||||||
no_sgl=""
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
no_sgl=yes
|
|
||||||
else
|
|
||||||
SGL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
|
||||||
SGL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
|
||||||
|
|
||||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
dnl
|
|
||||||
dnl Do nothing more than check if the installed SDL is sufficiently new, since
|
|
||||||
dnl we already did that in the SDL detection
|
|
||||||
dnl
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <SDL/SDL.h>
|
|
||||||
|
|
||||||
char*
|
|
||||||
my_strdup (char *str)
|
|
||||||
{
|
|
||||||
char *new_str;
|
|
||||||
|
|
||||||
if (str) {
|
|
||||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
|
||||||
strcpy (new_str, str);
|
|
||||||
} else {
|
|
||||||
new_str = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new_str;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int major, minor, micro;
|
|
||||||
char *tmp_version;
|
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
||||||
tmp_version = my_strdup("$min_sdl_version");
|
|
||||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
||||||
printf("%s, bad version string\n", "$min_sdl_version");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($sdl_major_version > major) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) &&
|
|
||||||
($sdl_micro_version >= micro))) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],, no_sgl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
if test "x$no_sgl" = x; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
ifelse([$2], , :, [$2])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
fi
|
|
||||||
AC_SUBST(SGL_CFLAGS)
|
|
||||||
AC_SUBST(SGL_LIBS)
|
|
||||||
])
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
aclocal
|
|
||||||
autoheader
|
|
||||||
automake --add-missing
|
|
||||||
autoconf
|
|
1132
nq/configure.in
1132
nq/configure.in
File diff suppressed because it is too large
Load diff
125
qw/acconfig.h
125
qw/acconfig.h
|
@ -1,125 +0,0 @@
|
||||||
/*
|
|
||||||
Compiler/Machine-Specific Configuration
|
|
||||||
*/
|
|
||||||
#ifndef __config_h_
|
|
||||||
#define __config_h_
|
|
||||||
@TOP@
|
|
||||||
/* "Proper" package name */
|
|
||||||
#undef PROGRAM
|
|
||||||
|
|
||||||
/* Define this to the QuakeWorld standard version you support */
|
|
||||||
#undef QW_VERSION
|
|
||||||
|
|
||||||
/* Define this to the QSG standard version you support */
|
|
||||||
#undef QSG_VERSION
|
|
||||||
|
|
||||||
/* Define if you want to use QF-style defaults instead of Id-style */
|
|
||||||
#undef NEWSTYLE
|
|
||||||
|
|
||||||
/* Define this to the location of the global config file */
|
|
||||||
#undef FS_GLOBALCFG
|
|
||||||
|
|
||||||
/* Define this to the location of the user config file */
|
|
||||||
#undef FS_USERCFG
|
|
||||||
|
|
||||||
/* Define this to the shared game directory root */
|
|
||||||
#undef FS_SHAREPATH
|
|
||||||
|
|
||||||
/* Define this to the unshared game directory root */
|
|
||||||
#undef FS_USERPATH
|
|
||||||
|
|
||||||
/* Define this to the base game for the engine to load */
|
|
||||||
#undef BASEGAME
|
|
||||||
|
|
||||||
/* Define this to the base directory for the client to download skins to */
|
|
||||||
#undef SKINBASE
|
|
||||||
|
|
||||||
/* Define this to use experimental code */
|
|
||||||
#undef _EXPERIMENTAL_
|
|
||||||
|
|
||||||
/* Define this if you want to use Intel assembly optimizations */
|
|
||||||
#undef USE_INTEL_ASM
|
|
||||||
|
|
||||||
/* Define this if you have a Linux-style CD-ROM API */
|
|
||||||
#undef USE_LINUX_CD
|
|
||||||
|
|
||||||
/* Define this if you have a BSD-style CD-ROM API */
|
|
||||||
#undef USE_BSD_CD
|
|
||||||
|
|
||||||
/* Define if you have the XFree86 DGA extension */
|
|
||||||
#undef HAVE_DGA
|
|
||||||
|
|
||||||
/* Define if you have the XFree86 VIDMODE extension */
|
|
||||||
#undef HAVE_VIDMODE
|
|
||||||
|
|
||||||
/* Define this if you have GLX */
|
|
||||||
#undef HAVE_GLX
|
|
||||||
|
|
||||||
/* Define this if you have Glide */
|
|
||||||
#undef HAVE_GLIDE
|
|
||||||
|
|
||||||
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
|
|
||||||
#undef HAVE_GL_COLOR_INDEX8_EXT
|
|
||||||
|
|
||||||
/* Define this if you want IPv6 support */
|
|
||||||
#undef HAVE_IPV6
|
|
||||||
|
|
||||||
/* Define this if C symbols are prefixed with an underscore */
|
|
||||||
#undef HAVE_SYM_PREFIX_UNDERSCORE
|
|
||||||
|
|
||||||
/* Define this if your system has socklen_t */
|
|
||||||
#undef HAVE_SOCKLEN_T
|
|
||||||
|
|
||||||
/* Define this if your system has size_t */
|
|
||||||
#undef HAVE_SIZE_T
|
|
||||||
|
|
||||||
/* Define this if you have ss_len member in struct sockaddr_storage (BSD) */
|
|
||||||
#undef HAVE_SS_LEN
|
|
||||||
|
|
||||||
/* Define this if you have sin6_len member in struct sockaddr_in6 (BSD) */
|
|
||||||
#undef HAVE_SIN6_LEN
|
|
||||||
|
|
||||||
/* Define this if you have sa_len member in struct sockaddr (BSD) */
|
|
||||||
#undef HAVE_SA_LEN
|
|
||||||
|
|
||||||
/* Define if you have the dlopen function. */
|
|
||||||
#undef HAVE_DLOPEN
|
|
||||||
|
|
||||||
/* Define if you have zlib */
|
|
||||||
#undef HAVE_ZLIB
|
|
||||||
|
|
||||||
/* Define if you have pthread support. */
|
|
||||||
#undef HAVE_LIBPTHREAD
|
|
||||||
|
|
||||||
/* Define this to something sane if you don't have stricmp */
|
|
||||||
#undef stricmp
|
|
||||||
|
|
||||||
/* If your version of OpenGL uses APIENTRY, define GLAPIENTRY to be APIENTRY */
|
|
||||||
#undef GLAPIENTRY
|
|
||||||
|
|
||||||
/* Define this to something sane if you don't have stricmp */
|
|
||||||
#undef stricmp
|
|
||||||
|
|
||||||
/* Define this if fnmatch is prototyped in fnmatch.h */
|
|
||||||
#undef HAVE_FNMATCH_PROTO
|
|
||||||
|
|
||||||
/* Define this to something appropriate for declaring 0 length arrays */
|
|
||||||
#undef ZERO_LENGTH_ARRAY
|
|
||||||
|
|
||||||
/* Define this if you want to have packet logging */
|
|
||||||
#undef PACKET_LOGGING
|
|
||||||
|
|
||||||
/* Define this if you have fnmatch.h */
|
|
||||||
#undef HAVE_FNMATCH_H
|
|
||||||
|
|
||||||
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
|
||||||
#undef HAVE_FB_AUX_VGA_PLANES_VGA4
|
|
||||||
|
|
||||||
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
|
||||||
#undef HAVE_FB_AUX_VGA_PLANES_CFB4
|
|
||||||
|
|
||||||
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
|
||||||
#undef HAVE_FB_AUX_VGA_PLANES_CFB8
|
|
||||||
|
|
||||||
@BOTTOM@
|
|
||||||
#endif // __config_h_
|
|
290
qw/acinclude.m4
290
qw/acinclude.m4
|
@ -1,290 +0,0 @@
|
||||||
dnl check for fields in a structure
|
|
||||||
dnl
|
|
||||||
dnl AC_HAVE_STRUCT_FIELD(struct, field, headers)
|
|
||||||
|
|
||||||
AC_DEFUN(AC_HAVE_STRUCT_FIELD, [
|
|
||||||
define(cache_val, translit(ac_cv_type_$1_$2, [A-Z ], [a-z_]))
|
|
||||||
AC_CACHE_CHECK([for $2 in $1], cache_val,[
|
|
||||||
AC_TRY_COMPILE([$3],[$1 x; x.$2;],
|
|
||||||
cache_val=yes,
|
|
||||||
cache_val=no)])
|
|
||||||
if test "$cache_val" = yes; then
|
|
||||||
define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
|
|
||||||
AC_DEFINE(foo, 1, [Define if $1 has field $2.])
|
|
||||||
undefine(foo)
|
|
||||||
fi
|
|
||||||
undefine(cache_val)
|
|
||||||
])
|
|
||||||
# Configure paths for SDL
|
|
||||||
# Sam Lantinga 9/21/99
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# stolen back from Frank Belew
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# Shamelessly stolen from Owen Taylor
|
|
||||||
|
|
||||||
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AM_PATH_SDL,
|
|
||||||
[dnl
|
|
||||||
dnl Get the cflags and libraries from the sdl-config script
|
|
||||||
dnl
|
|
||||||
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
|
|
||||||
sdl_prefix="$withval", sdl_prefix="")
|
|
||||||
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
|
|
||||||
sdl_exec_prefix="$withval", sdl_exec_prefix="")
|
|
||||||
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
|
|
||||||
, enable_sdltest=yes)
|
|
||||||
|
|
||||||
if test x$sdl_exec_prefix != x ; then
|
|
||||||
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
|
|
||||||
if test x${SDL_CONFIG+set} != xset ; then
|
|
||||||
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test x$sdl_prefix != x ; then
|
|
||||||
sdl_args="$sdl_args --prefix=$sdl_prefix"
|
|
||||||
if test x${SDL_CONFIG+set} != xset ; then
|
|
||||||
SDL_CONFIG=$sdl_prefix/bin/sdl-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
|
|
||||||
min_sdl_version=ifelse([$1], ,0.11.0,$1)
|
|
||||||
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
|
||||||
no_sdl=""
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
no_sdl=yes
|
|
||||||
else
|
|
||||||
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
|
||||||
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
|
||||||
|
|
||||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
if test "x$enable_sdltest" = "xyes" ; then
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
ac_save_LIBS="$LIBS"
|
|
||||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
||||||
LIBS="$LIBS $SDL_LIBS"
|
|
||||||
dnl
|
|
||||||
dnl Now check if the installed SDL is sufficiently new. (Also sanity
|
|
||||||
dnl checks the results of sdl-config to some extent
|
|
||||||
dnl
|
|
||||||
rm -f conf.sdltest
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <SDL.h>
|
|
||||||
|
|
||||||
char*
|
|
||||||
my_strdup (char *str)
|
|
||||||
{
|
|
||||||
char *new_str;
|
|
||||||
|
|
||||||
if (str)
|
|
||||||
{
|
|
||||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
|
||||||
strcpy (new_str, str);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
new_str = NULL;
|
|
||||||
|
|
||||||
return new_str;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int major, minor, micro;
|
|
||||||
char *tmp_version;
|
|
||||||
|
|
||||||
/* This hangs on some systems (?)
|
|
||||||
system ("touch conf.sdltest");
|
|
||||||
*/
|
|
||||||
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
|
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
||||||
tmp_version = my_strdup("$min_sdl_version");
|
|
||||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
||||||
printf("%s, bad version string\n", "$min_sdl_version");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($sdl_major_version > major) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
|
|
||||||
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
|
|
||||||
printf("*** best to upgrade to the required version.\n");
|
|
||||||
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
|
|
||||||
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
|
|
||||||
printf("*** config.cache before re-running configure\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test "x$no_sdl" = x ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
ifelse([$2], , :, [$2])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
echo "*** The sdl-config script installed by SDL could not be found"
|
|
||||||
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
|
|
||||||
echo "*** your path, or set the SDL_CONFIG environment variable to the"
|
|
||||||
echo "*** full path to sdl-config."
|
|
||||||
else
|
|
||||||
if test -f conf.sdltest ; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
echo "*** Could not run SDL test program, checking why..."
|
|
||||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
||||||
LIBS="$LIBS $SDL_LIBS"
|
|
||||||
AC_TRY_LINK([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <SDL.h>
|
|
||||||
], [ return 0; ],
|
|
||||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
|
||||||
echo "*** that the run-time linker is not finding SDL or finding the wrong"
|
|
||||||
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
|
|
||||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
||||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
||||||
echo "*** is required on your system"
|
|
||||||
echo "***"
|
|
||||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
|
||||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
|
||||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
||||||
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
|
|
||||||
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
|
|
||||||
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
SDL_CFLAGS=""
|
|
||||||
SDL_LIBS=""
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
fi
|
|
||||||
AC_SUBST(SDL_CFLAGS)
|
|
||||||
AC_SUBST(SDL_LIBS)
|
|
||||||
rm -f conf.sdltest
|
|
||||||
])
|
|
||||||
|
|
||||||
# Configure paths for SDL-GL
|
|
||||||
# Jeff Teunissen 11 Aug 2000
|
|
||||||
# stolen from Sam Lantinga
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# stolen back from Frank Belew
|
|
||||||
# stolen from Manish Singh
|
|
||||||
# Shamelessly stolen from Owen Taylor
|
|
||||||
|
|
||||||
dnl AM_CHECK_SGL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
dnl Test for SDL 1.1.x, do _not_ redefine any variables.
|
|
||||||
dnl ***MUST*** be run _after_ checking for SDL 1.0x, if used.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AM_CHECK_SGL,
|
|
||||||
[dnl
|
|
||||||
dnl Get the cflags and libraries from the sdl-config script
|
|
||||||
dnl
|
|
||||||
min_sdl_version=ifelse([$1], ,1.1.0,$1)
|
|
||||||
AC_MSG_CHECKING(whether SDL is version >= $min_sdl_version)
|
|
||||||
no_sgl=""
|
|
||||||
if test "$SDL_CONFIG" = "no" ; then
|
|
||||||
no_sgl=yes
|
|
||||||
else
|
|
||||||
SGL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
|
||||||
SGL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
|
||||||
|
|
||||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
ac_save_LIBS="$LIBS"
|
|
||||||
CFLAGS="$CFLAGS $SGL_CFLAGS"
|
|
||||||
LIBS="$LIBS $SGL_LIBS"
|
|
||||||
dnl
|
|
||||||
dnl Do nothing more than check if the installed SDL is sufficiently new, since
|
|
||||||
dnl we already did that in the SDL detection
|
|
||||||
dnl
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <SDL.h>
|
|
||||||
|
|
||||||
char*
|
|
||||||
my_strdup (char *str)
|
|
||||||
{
|
|
||||||
char *new_str;
|
|
||||||
|
|
||||||
if (str) {
|
|
||||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
|
||||||
strcpy (new_str, str);
|
|
||||||
} else {
|
|
||||||
new_str = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new_str;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int major, minor, micro;
|
|
||||||
char *tmp_version;
|
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
||||||
tmp_version = my_strdup("$min_sdl_version");
|
|
||||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
||||||
printf("%s, bad version string\n", "$min_sdl_version");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($sdl_major_version > major) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
|
||||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) &&
|
|
||||||
($sdl_micro_version >= micro))) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],, no_sgl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
LIBS="$ac_save_LIBS"
|
|
||||||
fi
|
|
||||||
if test "x$no_sgl" = x; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
ifelse([$2], , :, [$2])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl AM_PROG_LEX
|
|
||||||
dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
|
|
||||||
AC_DEFUN(AM_PROG_LEX,
|
|
||||||
[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
|
|
||||||
AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
|
|
||||||
AC_PROG_LEX
|
|
||||||
AC_DECL_YYTEXT
|
|
||||||
])
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
aclocal && autoheader && automake --add-missing && autoconf
|
|
1439
qw/configure.in
1439
qw/configure.in
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue