2001-02-20 03:10:06 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2002-08-01 20:05:03 +00:00
|
|
|
AC_PREREQ(2.52)
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_INIT(qw/source/sv_main.c)
|
|
|
|
AC_REVISION($Revision$) dnl
|
|
|
|
AM_CONFIG_HEADER(include/config.h)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_VALIDATE_CACHED_SYSTEM_TUPLE(
|
|
|
|
rm $cache_file
|
|
|
|
echo restart configure
|
|
|
|
exit 1
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
dnl This is the only place where the package version appears
|
2004-04-28 21:07:39 +00:00
|
|
|
AM_INIT_AUTOMAKE(quakeforge, 0.5.5-CVS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl Define the proper name and extra version numbers for package
|
|
|
|
PROGRAM=QuakeForge
|
|
|
|
NQ_VERSION=1.09
|
|
|
|
NQ_QSG_VERSION=1.0
|
|
|
|
QW_VERSION=2.40
|
|
|
|
QW_QSG_VERSION=2.0
|
2003-07-12 07:26:16 +00:00
|
|
|
RPMVERSION=`echo $VERSION | tr - _`
|
|
|
|
AC_SUBST(RPMVERSION)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(PROGRAM, "$PROGRAM", ["Proper" package name])
|
|
|
|
AC_DEFINE_UNQUOTED(NQ_VERSION, "$NQ_VERSION", [Define this to the NetQuake standard version you support])
|
|
|
|
AC_DEFINE_UNQUOTED(NQ_QSG_VERSION, "$NQ_QSG_VERSION", [Define this to the QSG standard version you support in NetQuake])
|
|
|
|
AC_DEFINE_UNQUOTED(QW_VERSION, "$QW_VERSION", [Define this to the QuakeWorld standard version you support])
|
|
|
|
AC_DEFINE_UNQUOTED(QW_QSG_VERSION, "$QW_QSG_VERSION", [Define this to the QSG standard version you support in QuakeWorld])
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_SUBST(PROGRAM)
|
|
|
|
AC_SUBST(NQ_VERSION)
|
2001-02-21 21:13:29 +00:00
|
|
|
AC_SUBST(NQ_QSG_VERSION)
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_SUBST(QW_VERSION)
|
2001-02-21 21:13:29 +00:00
|
|
|
AC_SUBST(QW_QSG_VERSION)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-06-10 23:50:46 +00:00
|
|
|
ISODATE=`date +%Y-%m-%d`
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_SUBST(ISODATE)
|
|
|
|
|
|
|
|
AC_LANG_C
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x${CFLAGS-unset}" = xunset; then
|
2001-10-11 03:04:28 +00:00
|
|
|
CFLAGS=""
|
|
|
|
fi
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "$x{AR-unset}" = xunset; then
|
2001-10-01 20:49:38 +00:00
|
|
|
AR="ar"
|
|
|
|
fi
|
|
|
|
export AR
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
endian=""
|
|
|
|
case "$host_os" in
|
|
|
|
mingw32*)
|
|
|
|
mingw=yes
|
2001-09-30 22:59:28 +00:00
|
|
|
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32"
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$host" != "x$build"; then
|
2001-10-17 10:41:25 +00:00
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
2001-10-21 21:20:59 +00:00
|
|
|
CFLAGS="$CFLAGS -mno-cygwin -mconsole"
|
2001-10-17 10:41:25 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CC="$host_cpu-$host_os-gcc"
|
|
|
|
AS="$CC"
|
|
|
|
AR="$host_cpu-$host_os-ar"
|
|
|
|
RANLIB="$host_cpu-$host_os-ranlib"
|
|
|
|
;;
|
|
|
|
esac
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-10-17 10:41:25 +00:00
|
|
|
endian="little"
|
2001-02-20 03:10:06 +00:00
|
|
|
;;
|
2001-09-30 22:59:28 +00:00
|
|
|
cygwin*)
|
|
|
|
cygwin=yes
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$host" != "x$build"; then
|
2001-09-30 22:59:28 +00:00
|
|
|
CC="$host_cpu-$host_os-gcc"
|
|
|
|
AS="$CC"
|
|
|
|
AR="$host_cpu_$host_os-ar"
|
|
|
|
RANLIB="$host_cpu-$host_os-ranlib"
|
2001-10-08 05:52:56 +00:00
|
|
|
endian="little"
|
2001-10-02 01:53:26 +00:00
|
|
|
fi
|
2001-10-17 10:41:25 +00:00
|
|
|
;;
|
2001-02-20 03:10:06 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for programs.
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_LN_S
|
2001-09-28 16:03:45 +00:00
|
|
|
AC_PROG_RANLIB
|
2001-10-08 04:24:27 +00:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2001-03-29 09:07:44 +00:00
|
|
|
AM_PROG_LIBTOOL
|
2002-04-10 17:56:00 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_PROG_YACC
|
2002-08-13 04:22:26 +00:00
|
|
|
if echo $YACC | grep -v bison > /dev/null; then
|
2002-04-10 17:56:00 +00:00
|
|
|
AC_MSG_ERROR(GNU bison is required but wasn't found)
|
|
|
|
fi
|
|
|
|
|
2001-08-16 23:12:14 +00:00
|
|
|
AM_PROG_LEX
|
2002-08-13 04:22:26 +00:00
|
|
|
if echo $LEX | grep -v flex > /dev/null; then
|
2002-04-10 17:56:00 +00:00
|
|
|
AC_MSG_ERROR(GNU flex is required but wasn't found)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2002-02-05 18:40:47 +00:00
|
|
|
AC_ARG_WITH(cpp,
|
|
|
|
[ --with-cpp=CPP how qfcc should invoke cpp],
|
|
|
|
cpp_name="$withval", cpp_name=auto
|
|
|
|
)
|
|
|
|
if test "x$cpp_name" != xauto; then
|
|
|
|
CPP_NAME="$cpp_name"
|
|
|
|
else
|
2002-04-07 06:00:13 +00:00
|
|
|
CPP_NAME="cpp %d -o %o %i"
|
2002-02-05 18:40:47 +00:00
|
|
|
case "$target_os" in
|
2003-08-06 17:20:46 +00:00
|
|
|
*freebsd*)
|
|
|
|
CPP_NAME="cpp %d %i %o"
|
|
|
|
;;
|
2004-01-20 05:57:39 +00:00
|
|
|
*qnx*)
|
|
|
|
CPP_NAME="gcc -E -x c++ %d -o %o %i"
|
|
|
|
;;
|
2004-05-09 01:20:51 +00:00
|
|
|
*darwin*)
|
|
|
|
CPP_NAME="/usr/libexec/gcc/darwin/`/usr/bin/arch`/default/cpp %d -o %o %i"
|
|
|
|
;;
|
2002-02-05 18:40:47 +00:00
|
|
|
*bsd*)
|
|
|
|
touch conftest.c
|
|
|
|
CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o"
|
|
|
|
rm -f conftest.[ci]
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_CHECK_LIB(l, main, LEXLIB="-ll", AC_CHECK_LIB(fl, main, LEXLIB="-lfl"))
|
|
|
|
AC_SUBST(LEXLIB)
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for system services
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
AC_SYS_LONG_FILE_NAMES
|
|
|
|
AC_EXEEXT
|
|
|
|
AC_OBJEXT
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for header files.
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_MAJOR
|
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_CHECK_HEADERS(
|
2002-08-25 20:47:13 +00:00
|
|
|
alloca.h alsa/asoundlib.h arpa/inet.h asm/io.h assert.h conio.h \
|
|
|
|
ctype.h ddraw.h dinput.h direct.h dirent.h dlfcn.h dmedia/audio.h \
|
|
|
|
dmedia/cdaudio.h dpmi.h dsound.h errno.h execinfo.h fcntl.h io.h \
|
|
|
|
libc.h limits.h linux/cdrom.h linux/joystick.h linux/soundcard.h \
|
|
|
|
machine/soundcard.h malloc.h math.h mgraph.h _mingw.h netdb.h \
|
2002-09-12 06:48:05 +00:00
|
|
|
netinet/in.h process.h pthread.h pwd.h rpc/types.h setjmp.h signal.h \
|
|
|
|
stdarg.h stdio.h stdlib.h string.h strings.h sys/asoundlib.h \
|
|
|
|
sys/audioio.h sys/filio.h sys/ioctl.h sys/io.h sys/ipc.h sys/mman.h \
|
|
|
|
sys/param.h sys/poll.h sys/shm.h sys/signal.h sys/socket.h \
|
|
|
|
sys/soundcard.h sys/stat.h sys/time.h sys/types.h sys/uio.h termios.h \
|
|
|
|
time.h unistd.h vgakeyboard.h vgamouse.h windows.h winsock.h
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
if test "x$mingw" = xyes; then
|
|
|
|
AC_MSG_CHECKING(for fnmatch.h)
|
|
|
|
AC_MSG_RESULT(yes)
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FNMATCH_H, 1, [Define this if you have fnmatch.h])
|
2004-01-12 02:23:36 +00:00
|
|
|
AC_MSG_CHECKING(for tchar.h)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_TCHAR_H, 1, [Define this if you have tchar.h])
|
2001-02-20 03:10:06 +00:00
|
|
|
else
|
|
|
|
AC_CHECK_HEADERS(fnmatch.h)
|
|
|
|
fi
|
|
|
|
|
2002-09-12 06:48:05 +00:00
|
|
|
if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
2002-09-13 20:53:49 +00:00
|
|
|
save_ldflags="$LDFLAGS"
|
2004-01-22 06:36:59 +00:00
|
|
|
case "$host_os" in
|
|
|
|
*qnx*) dnl qnx have all pthread* functions in the libc.
|
|
|
|
;;
|
|
|
|
*) LDFLAGS="$LDFLAGS -lpthread"
|
|
|
|
AC_TRY_LINK(
|
|
|
|
[#include <pthread.h>],
|
|
|
|
[pthread_attr_t type;
|
|
|
|
pthread_attr_setstacksize(&type, 0x100000);],
|
|
|
|
[PTHREAD_LDFLAGS=-lpthread],
|
|
|
|
[PTHREAD_LDFLAGS=-pthread]
|
|
|
|
)
|
|
|
|
;;
|
|
|
|
esac
|
2002-09-13 20:53:49 +00:00
|
|
|
LDFLAGS="$save_ldflags"
|
2002-09-24 02:46:03 +00:00
|
|
|
PTHREAD_CFLAGS=-D_REENTRANT
|
2002-09-12 06:48:05 +00:00
|
|
|
fi
|
2002-09-24 02:46:03 +00:00
|
|
|
AC_SUBST(PTHREAD_LDFLAGS)
|
|
|
|
AC_SUBST(PTHREAD_CFLAGS)
|
2002-09-12 06:48:05 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_ST_BLKSIZE
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$ac_cv_header_unistd_h" = xyes; then
|
2003-07-21 20:51:03 +00:00
|
|
|
AC_MSG_CHECKING(for _SC_PAGESIZE)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <unistd.h>],
|
|
|
|
[int foo = _SC_PAGESIZE;],
|
|
|
|
AC_DEFINE(HAVE__SC_PAGESIZE,1,[Define this if you have _SC_PAGESIZE])
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2003-01-15 15:31:36 +00:00
|
|
|
AC_MSG_CHECKING(for __attribute__)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[static __attribute__ ((unused)) const char *foo = "bar";],
|
|
|
|
[],
|
|
|
|
AC_DEFINE(HAVE___ATTRIBUTE__)
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AH_VERBATIM([HAVE___ATTRIBUTE__],
|
|
|
|
[/* Define this if the GCC __attribute__ keyword is available */
|
|
|
|
#undef HAVE___ATTRIBUTE__
|
2003-01-15 17:01:24 +00:00
|
|
|
#ifndef HAVE___ATTRIBUTE__
|
2003-01-15 15:31:36 +00:00
|
|
|
# define __attribute__(x)
|
|
|
|
#endif])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for __builtin_expect)
|
|
|
|
AC_TRY_COMPILE(
|
2003-01-15 17:09:08 +00:00
|
|
|
[long (*foo) (long, long) = __builtin_expect;],
|
|
|
|
[],
|
2003-01-15 15:31:36 +00:00
|
|
|
AC_DEFINE(HAVE___BUILTIN_EXPECT)
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AH_VERBATIM([HAVE___BUILTIN_EXPECT],
|
|
|
|
[/* Define this if the GCC __builtin_expect keyword is available */
|
|
|
|
#undef HAVE___BUILTIN_EXPECT
|
2003-01-15 17:01:24 +00:00
|
|
|
#ifndef HAVE___BUILTIN_EXPECT
|
2003-01-15 15:31:36 +00:00
|
|
|
# define __builtin_expect(x,c) x
|
|
|
|
#endif])
|
|
|
|
|
2002-04-15 22:17:02 +00:00
|
|
|
AC_TYPE_VA_LIST
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
if test "x$cross_compiling" = xyes; then
|
|
|
|
AC_MSG_CHECKING(whether byte ordering is bigendian)
|
|
|
|
AC_ARG_WITH(endian,
|
2001-09-25 23:58:23 +00:00
|
|
|
[ --with-endian=TYPE set endian of target system for
|
|
|
|
cross-compiling. TYPE = little or big.],
|
2001-02-20 03:10:06 +00:00
|
|
|
endian="$withval",
|
|
|
|
)
|
|
|
|
case "x$endian" in
|
|
|
|
xbig)
|
|
|
|
AC_DEFINE(WORDS_BIGENDIAN)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
;;
|
|
|
|
xlittle)
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
;;
|
|
|
|
x)
|
|
|
|
AC_MSG_RESULT(unspecified, use --with-endian={big,little})
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
x*)
|
2001-02-21 21:13:29 +00:00
|
|
|
AC_MSG_RESULT(unrecognized endianness)
|
2001-02-20 03:10:06 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
fi
|
|
|
|
|
2001-05-17 18:29:22 +00:00
|
|
|
AC_CHECK_FUNCS(usleep)
|
|
|
|
|
2001-05-08 20:53:25 +00:00
|
|
|
AC_MSG_CHECKING(for fnmatch)
|
|
|
|
AC_TRY_LINK(
|
|
|
|
[],
|
|
|
|
[fnmatch();],
|
|
|
|
BUILD_FNMATCH=no
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
BUILD_FNMATCH=yes
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
2003-08-06 18:20:48 +00:00
|
|
|
AM_CONDITIONAL(BUILD_FNMATCH, test "x$BUILD_FNMATCH" = "xyes")
|
2001-05-08 20:53:25 +00:00
|
|
|
|
2004-01-19 07:47:41 +00:00
|
|
|
AC_MSG_CHECKING(for getopt_long)
|
|
|
|
AC_TRY_LINK(
|
|
|
|
[],
|
|
|
|
[getopt_long();],
|
|
|
|
BUILD_GETOPT=no
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
BUILD_GETOPT=yes
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AM_CONDITIONAL(BUILD_GETOPT, test "x$BUILD_GETOPT" = "xyes")
|
|
|
|
|
2003-07-09 06:28:09 +00:00
|
|
|
AC_MSG_CHECKING(for alloca in stdlib.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <stdlib.h>],
|
|
|
|
[void *(*foo)(size_t) = alloca;],
|
|
|
|
have_alloca_proto=yes
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
have_alloca_proto=no
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$have_alloca_proto" = no -a "x$ac_cv_header_alloca_h" = yes; then
|
2003-07-09 06:28:09 +00:00
|
|
|
AC_MSG_CHECKING(for alloca in alloca.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <stdlib.h>]
|
|
|
|
[#include <alloca.h>],
|
|
|
|
[void *(*foo)(size_t) = alloca;],
|
|
|
|
have_alloca_proto=yes
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
have_alloca_proto=no
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$have_alloca_proto" = xyes; then
|
2003-07-09 06:28:09 +00:00
|
|
|
AC_DEFINE(HAVE_ALLOCA_PROTO)
|
|
|
|
fi
|
|
|
|
AH_VERBATIM([HAVE_ALLOCA_PROTO],
|
|
|
|
[/* Define this if alloca is prototyped */
|
|
|
|
#undef HAVE_ALLOCA_PROTO
|
|
|
|
#ifndef HAVE_ALLOCA_PROTO
|
|
|
|
#ifndef QFASM
|
|
|
|
void *alloca (int size);
|
|
|
|
#endif
|
|
|
|
#endif])
|
|
|
|
|
2001-02-21 21:13:29 +00:00
|
|
|
AC_MSG_CHECKING(for fnmatch in fnmatch.h)
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "fnmatch.h"],
|
|
|
|
[int (*foo)() = fnmatch;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FNMATCH_PROTO, 1, [Define this if fnmatch is prototyped in fnmatch.h])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
2002-02-06 19:06:05 +00:00
|
|
|
AC_MSG_CHECKING(for strnlen in string.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "string.h"],
|
|
|
|
[int (*foo)() = strnlen;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_STRNLEN_PROTO, 1, [Define this if strnlen is prototyped in string.h])
|
2002-02-06 19:06:05 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for strcasestr in string.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "string.h"],
|
2002-04-17 06:33:48 +00:00
|
|
|
[int (*foo)() = strcasestr;],
|
|
|
|
AC_DEFINE(HAVE_STRCASESTR_PROTO, 1, [Define this if strcasestr is prototyped in string.h])
|
2002-02-06 19:06:05 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_CHECKING(for type of fpos_t)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <stdio.h>],
|
|
|
|
[fpos_t x = 0],
|
|
|
|
AC_MSG_RESULT(off_t),
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FPOS_T_STRUCT, 1, [Define this if FPOS_T is a struct])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(struct)
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for socklen_t in sys/types.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>],
|
|
|
|
[ socklen_t x = 0;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SOCKLEN_T, 1, [Define this if your system has socklen_t])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
dnl FreeBSD 4.0 has it in sys/socket.h
|
|
|
|
AC_MSG_CHECKING(for socklen_t in sys/socket.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>],
|
|
|
|
[ socklen_t x = 0;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SOCKLEN_T, 1, [Define this if your system has socklen_t]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2002-05-13 21:53:52 +00:00
|
|
|
if test "x$ac_cv_header_sys_uio_h" = xyes; then
|
|
|
|
AC_MSG_CHECKING(for struct in_pktinfo)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <sys/uio.h>],
|
|
|
|
[struct in_pktinfo x;],
|
|
|
|
AC_DEFINE(HAVE_IN_PKTINFO, 1, [Define this if your system has struct in_pktinfo])
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_CHECKING(for underscore prefix in names)
|
|
|
|
AC_TRY_LINK(
|
|
|
|
[asm(".long _bar");
|
|
|
|
int bar;],
|
|
|
|
[],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SYM_PREFIX_UNDERSCORE, 1, [Define this if C symbols are prefixed with an underscore]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for size_t in sys/types.h)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>],
|
|
|
|
[ size_t x = 0;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SIZE_T, 1, [Define this if your system has size_t]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl maybe these two (at least the 2nd) should only be checked if ipv6 is enabled?
|
|
|
|
AC_MSG_CHECKING(for ss_len in struct sockaddr_storage)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>],
|
|
|
|
[ void f(void) { struct sockaddr_storage ss; ss.ss_len=0; }],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SS_LEN, 1, [Define this if you have ss_len member in struct sockaddr_storage (BSD)]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for sin6_len in struct sockaddr_in6)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <netinet/in.h>],
|
|
|
|
[ void f(void) { struct sockaddr_in6 s6; s6.sin6_len=0; }],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SIN6_LEN, 1, [Define this if you have sin6_len member in struct sockaddr_in6 (BSD)]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for sa_len in struct sockaddr)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <netinet/in.h>],
|
|
|
|
[ void f(void) { struct sockaddr sa; sa.sa_len=0; }],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_SA_LEN, 1, [Define this if you have sa_len member in struct sockaddr (BSD)]) AC_MSG_RESULT(yes),
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for library functions.
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_VPRINTF
|
2002-04-15 22:17:02 +00:00
|
|
|
AC_FUNC_VA_COPY
|
|
|
|
AC_FUNC__VA_COPY
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_CHECK_FUNCS(
|
2002-08-25 20:47:13 +00:00
|
|
|
access _access gethostname gethostbyname connect gettimeofday getwd \
|
|
|
|
mkdir _mkdir ftime _ftime fcntl stat putenv select socket strerror \
|
|
|
|
strcasestr strnlen strstr snprintf _snprintf vsnprintf _vsnprintf \
|
2003-07-17 21:01:25 +00:00
|
|
|
strsep dlopen getaddrinfo getnameinfo mprotect getpagesize
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
DL_LIBS=""
|
|
|
|
if test "x$ac_cv_func_dlopen" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(dl, dlopen,
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_DLOPEN, 1, [Define if you have the dlopen function.]) DL_LIBS="-ldl"
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
fi
|
|
|
|
AC_SUBST(DL_LIBS)
|
|
|
|
|
2001-07-19 05:13:32 +00:00
|
|
|
AC_ARG_ENABLE(curses,
|
|
|
|
[ --disable-curses disable curses support]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$enable_curses" != "xno"; then
|
|
|
|
AC_CHECK_HEADERS(curses.h)
|
|
|
|
AC_CHECK_LIB(ncurses, initscr,
|
|
|
|
CURSES_LIBS=-lncurses,
|
|
|
|
AC_CHECK_LIB(pdcurses, initscr,
|
|
|
|
CURSES_LIBS=-lpdcurses,
|
|
|
|
AC_CHECK_LIB(curses, initscr,
|
|
|
|
CURSES_LIBS=-lcurses,
|
|
|
|
CURSES_LIBS=
|
|
|
|
)
|
2001-07-11 23:09:10 +00:00
|
|
|
)
|
2001-07-10 22:36:22 +00:00
|
|
|
)
|
2001-07-19 05:13:32 +00:00
|
|
|
else
|
|
|
|
CURSES_LIBS=
|
|
|
|
fi
|
2001-07-10 22:36:22 +00:00
|
|
|
AC_SUBST(CURSES_LIBS)
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl Checks for stricmp/strcasecmp
|
2001-05-27 01:56:39 +00:00
|
|
|
#AC_CHECK_FUNC(strcasecmp,
|
|
|
|
# ,
|
|
|
|
# AC_CHECK_FUNC(stricmp,
|
|
|
|
# AC_DEFINE(strcasecmp, stricmp)
|
|
|
|
# )
|
|
|
|
#)
|
|
|
|
AC_CHECK_FUNC(strcasecmp, strcasecmp=yes, strcasecmp=no)
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$strcasecmp" = xno; then
|
2001-02-21 21:38:07 +00:00
|
|
|
AC_CHECK_FUNC(stricmp,
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(strcasecmp, stricmp, [Define strcasecmp as stricmp if you have one but not the other]),
|
2001-05-27 01:56:39 +00:00
|
|
|
AC_MSG_ERROR([Neither stricmp nor strcasecmp found])
|
2001-02-21 21:38:07 +00:00
|
|
|
)
|
2001-05-27 01:56:39 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl Check for vsnprintf
|
|
|
|
if test "x$ac_cv_func_vsnprintf" = "xno" -a \
|
|
|
|
"x$ac_cv_func__vsnprintf" = "xno"; then
|
|
|
|
dnl libdb may have this
|
|
|
|
AC_CHECK_LIB(db,vsnprintf)
|
|
|
|
fi
|
|
|
|
|
2002-01-22 07:10:18 +00:00
|
|
|
WINMM=""
|
2001-10-09 21:36:57 +00:00
|
|
|
case "$target_os" in
|
|
|
|
cygwin*)
|
2002-01-22 07:10:18 +00:00
|
|
|
WINMM="-lwinmm"
|
2001-10-09 21:36:57 +00:00
|
|
|
;;
|
|
|
|
mingw32*)
|
2002-01-22 07:10:18 +00:00
|
|
|
WINMM="-lwinmm"
|
2001-10-09 21:36:57 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
dnl Checks for working -lm
|
|
|
|
AC_CHECK_LIB(m, pow,, AC_MSG_ERROR([math library (-lm) appears broken]))
|
|
|
|
;;
|
|
|
|
esac
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2003-09-10 05:20:51 +00:00
|
|
|
AC_ARG_ENABLE(wildmidi,
|
|
|
|
[ --disable-wildmidi disable libWildMidi support],
|
|
|
|
)
|
|
|
|
HAVE_WILDMIDI=no
|
|
|
|
WM_LIBS=
|
|
|
|
if test "x$enable_wildmidi" != "xno"; then
|
|
|
|
AC_CHECK_LIB(WildMidi, WildMidi_GetString, HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
|
|
|
|
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(wildmidi_lib.h, HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
|
|
|
|
if test "x$HAVE_WILDMIDI" = "xyes"; then
|
|
|
|
WM_LIBS="-lWildMidi"
|
|
|
|
AC_DEFINE(HAVE_WILDMIDI, 1, [Define if you have WildMidi])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(WM_LIBS)
|
|
|
|
|
2002-09-01 20:02:12 +00:00
|
|
|
AC_ARG_ENABLE(vorbis,
|
|
|
|
[ --disable-vorbis disable ogg vorbis support],
|
|
|
|
)
|
|
|
|
|
2002-08-25 20:47:13 +00:00
|
|
|
HAVE_VORBIS=no
|
2002-09-01 20:02:12 +00:00
|
|
|
if test "x$enable_vorbis" != "xno"; then
|
|
|
|
AM_PATH_OGG(HAVE_OGG=yes, HAVE_OGG=no)
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$HAVE_OGG" = xyes; then
|
2002-09-01 20:02:12 +00:00
|
|
|
AM_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no)
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$HAVE_VORBIS" = xyes; then
|
2002-09-01 20:02:12 +00:00
|
|
|
AC_DEFINE(HAVE_VORBIS, 1, [define this if you have ogg/vorbis libs])
|
|
|
|
fi
|
|
|
|
fi
|
2002-06-14 20:36:28 +00:00
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_ARG_ENABLE(zlib,
|
|
|
|
[ --disable-zlib disable zlib support],
|
|
|
|
)
|
|
|
|
|
2001-10-06 01:07:24 +00:00
|
|
|
HAVE_ZLIB=no
|
|
|
|
Z_LIBS=""
|
2001-02-20 03:10:06 +00:00
|
|
|
if test "x$enable_zlib" != "xno"; then
|
|
|
|
dnl Check for working -lz
|
|
|
|
dnl Note - must have gztell *and* gzgets in -lz *and* zlib.h
|
|
|
|
AC_CHECK_LIB(z, gztell, HAVE_ZLIB=yes, HAVE_ZLIB=no, [$LIBS])
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
AC_CHECK_LIB(z, gzgets, HAVE_ZLIB=yes, HAVE_ZLIB=no, [$LIBS])
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(zlib.h, HAVE_ZLIB=yes, HAVE_ZLIB=no)
|
|
|
|
if test "x$HAVE_ZLIB" = "xyes"; then
|
|
|
|
Z_LIBS="-lz"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2003-09-08 14:32:54 +00:00
|
|
|
AC_ARG_ENABLE(png,
|
2003-10-23 03:52:52 +00:00
|
|
|
[ --disable-png disable png support],
|
2003-09-08 14:32:54 +00:00
|
|
|
)
|
|
|
|
HAVE_PNG=no
|
|
|
|
PNG_LIBS=""
|
|
|
|
if test "x$enable_zlib" != "xno"; then
|
|
|
|
AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS])
|
|
|
|
if test "x$HAVE_PNG" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(png.h, HAVE_PNG=yes, HAVE_PNG=no)
|
|
|
|
if test "x$HAVE_PNG" = "xyes"; then
|
|
|
|
PNG_LIBS="-lpng"
|
|
|
|
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(PNG_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH(ipv6,
|
2001-09-25 23:58:23 +00:00
|
|
|
[ --with-ipv6=DIR enable IPv6 support. Optional argument specifies
|
2001-02-20 03:10:06 +00:00
|
|
|
location of inet6 libraries.],
|
|
|
|
if test "x$withval" = xno ; then
|
|
|
|
NETTYPE_IPV6=no
|
|
|
|
else
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_IPV6, 1, [Define this if you want IPv6 support])
|
2001-02-20 03:10:06 +00:00
|
|
|
NETTYPE_IPV6=yes
|
|
|
|
if test "x$withval" != xyes ; then
|
|
|
|
LIBS="$LIBS -L${withval}"
|
|
|
|
fi
|
|
|
|
fi
|
2001-02-21 21:13:29 +00:00
|
|
|
,
|
2001-02-20 03:10:06 +00:00
|
|
|
NETTYPE_IPV6=no
|
|
|
|
)
|
|
|
|
AM_CONDITIONAL(NETTYPE_IPV6, test "x$NETTYPE_IPV6" = "xyes")
|
|
|
|
|
|
|
|
dnl Checks for MGL support
|
|
|
|
AC_ARG_WITH(mgl,
|
2001-09-25 23:58:23 +00:00
|
|
|
[ --with-mgl=DIR use MGL found in DIR],
|
2001-02-20 03:10:06 +00:00
|
|
|
HAVE_MGL=$withval, HAVE_MGL=auto)
|
|
|
|
if test "x$HAVE_MGL" != xno; then
|
|
|
|
if test "x$ac_cv_header_windows_h" != "xyes"; then
|
|
|
|
HAVE_MGL=no
|
|
|
|
else
|
|
|
|
if test "x$HAVE_MGL" != xauto; then
|
|
|
|
MGL_CFLAGS="$MGL_CFLAGS -I$withval/include"
|
|
|
|
MGL_LIBS="$MGL_LIBS -L$withval/lib"
|
|
|
|
fi
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $MGL_CFLAGS"
|
|
|
|
AC_CHECK_HEADER(mgraph.h, HAVE_MGL=yes, HAVE_MGL=no)
|
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
|
|
|
|
dnl Make sure -lmgllt or -lmglfx works
|
|
|
|
if test "x$HAVE_MGL" = xyes; then
|
|
|
|
for lib in mglfx mgllt; do
|
|
|
|
MGL_LIBS="$MGL_LIBS -lgdi32 -lwinmm -ldinput -lddraw"
|
|
|
|
AC_CHECK_LIB($lib, MGL_registerDriver,
|
|
|
|
MGL_LIBS="-l$lib $MGL_LIBS"
|
|
|
|
HAVE_MGL=yes
|
|
|
|
break,
|
|
|
|
HAVE_MGL=no,
|
|
|
|
[$MGL_LIBS]
|
|
|
|
)
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_MGL" != xyes; then
|
|
|
|
MGL_CFLAGS="" MGL_LIBS=""
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(HAVE_MGL)
|
|
|
|
AC_SUBST(MGL_CFLAGS)
|
|
|
|
AC_SUBST(MGL_LIBS)
|
|
|
|
|
|
|
|
dnl Checks for Linux FBDev support
|
|
|
|
AC_ARG_WITH(fbdev,
|
|
|
|
[ --with-fbdev use Linux framebuffer device],
|
|
|
|
HAVE_FBDEV=$withval, HAVE_FBDEV=auto)
|
2001-08-16 22:32:57 +00:00
|
|
|
if test "x$HAVE_FBDEV" != xno; then
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl We should still be able to compile it even if
|
|
|
|
dnl there is no fbdev support in the running kernel
|
2001-03-29 17:31:15 +00:00
|
|
|
AC_CHECK_HEADERS(linux/fb.h, HAVE_FBDEV=yes, HAVE_FBDEV=no)
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-02-21 21:13:29 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_SUBST(HAVE_FBDEV)
|
|
|
|
if test "x$HAVE_FBDEV" = xyes; then
|
|
|
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_VGA4)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "linux/fb.h"],
|
|
|
|
[int foo = FB_AUX_VGA_PLANES_VGA4;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_VGA4, 1, [Define this if you have FB_AUX_VGA_PLANES_VGA4])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_CFB4)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "linux/fb.h"],
|
|
|
|
[int foo = FB_AUX_VGA_PLANES_CFB4;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_CFB4, 1, [Define this if you have FB_AUX_VGA_PLANES_CFB4])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_CFB8)
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[#include "linux/fb.h"],
|
|
|
|
[int foo = FB_AUX_VGA_PLANES_CFB8;],
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_CFB8, 1, [Define this if you have FB_AUX_VGA_PLANES_CFB4])
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Checks for SVGALib support
|
|
|
|
AC_ARG_WITH(svga,
|
2001-09-25 23:58:23 +00:00
|
|
|
[ --with-svga=DIR use SVGALib found in DIR],
|
2001-02-20 03:10:06 +00:00
|
|
|
HAVE_SVGA=$withval, HAVE_SVGA=auto)
|
|
|
|
if test "x$HAVE_SVGA" != xno; then
|
|
|
|
if test "x$HAVE_SVGA" != xauto; then
|
|
|
|
SVGA_CFLAGS="$SVGA_CFLAGS -I$withval/include"
|
|
|
|
SVGA_LIBS="$SVGA_LIBS -L$withval/lib"
|
|
|
|
dnl The default system location is /usr/include or /usr/local/include
|
|
|
|
dnl and we (obviously) do not need to set CFLAGS for that
|
|
|
|
fi
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $SVGA_CFLAGS"
|
|
|
|
AC_CHECK_HEADER(vga.h, HAVE_SVGA=yes, HAVE_SVGA=no)
|
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
|
|
|
|
dnl Make sure -lvga works
|
|
|
|
if test "x$HAVE_SVGA" = xyes; then
|
|
|
|
AC_CHECK_LIB(vga, vga_getmousetype, SVGA_LIBS="$SVGA_LIBS -lvga"
|
|
|
|
HAVE_SVGA=yes, HAVE_SVGA=no, [$SVGA_LIBS]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_SVGA" != xyes; then
|
|
|
|
SVGA_CFLAGS="" SVGA_LIBS=""
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(HAVE_SVGA)
|
|
|
|
AC_SUBST(SVGA_CFLAGS)
|
|
|
|
AC_SUBST(SVGA_LIBS)
|
|
|
|
|
|
|
|
dnl Checks for X11 and XShm
|
2001-04-10 20:07:11 +00:00
|
|
|
if test "x$mingw" != xyes; then
|
|
|
|
AC_PATH_XTRA
|
|
|
|
if test "x$no_x" = x; then
|
|
|
|
HAVE_X=yes
|
|
|
|
AC_CHECK_LIB(Xext, XShmQueryExtension,
|
|
|
|
X_SHM_LIB=-lXext,
|
|
|
|
HAVE_X=no,
|
|
|
|
[ $X_LIBS -lX11 $X_EXTRA_LIBS ]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
AC_SUBST(X_SHM_LIB)
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Check for XFree86-VidMode support
|
|
|
|
AC_ARG_ENABLE(vidmode,
|
2001-10-08 03:41:23 +00:00
|
|
|
[ --disable-vidmode don't use XFree86 VidMode extension],
|
2001-02-21 21:13:29 +00:00
|
|
|
HAVE_VIDMODE=$enable_vidmode, HAVE_VIDMODE=auto)
|
2001-02-20 03:10:06 +00:00
|
|
|
if test "x$HAVE_VIDMODE" != xno; then
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
|
|
|
|
AC_CHECK_HEADER(X11/extensions/xf86vmode.h,
|
|
|
|
dnl Make sure the library works
|
2002-04-12 19:02:06 +00:00
|
|
|
[AC_CHECK_LIB(Xxf86vm, XF86VidModeSwitchToMode,
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_VIDMODE, 1, [Define if you have the XFree86 VIDMODE extension])
|
2001-02-20 03:10:06 +00:00
|
|
|
VIDMODE_LIBS="-lXxf86vm",,
|
|
|
|
[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS]
|
2002-04-12 19:02:06 +00:00
|
|
|
)],
|
|
|
|
[],
|
|
|
|
[#include <X11/Xlib.h>]
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(VIDMODE_LIBS)
|
|
|
|
|
|
|
|
dnl Check for DGA support
|
|
|
|
AC_ARG_ENABLE(dga,
|
2001-10-08 03:41:23 +00:00
|
|
|
[ --disable-dga don't use XFree86 DGA extension],
|
2001-02-20 03:10:06 +00:00
|
|
|
HAVE_DGA=$enable_dga, HAVE_DGA=auto)
|
|
|
|
if test "x$HAVE_DGA" != xno; then
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
|
|
|
|
AC_CHECK_HEADER(X11/extensions/xf86dga.h,
|
|
|
|
dnl Make sure the library works
|
2002-04-12 19:02:06 +00:00
|
|
|
[AC_CHECK_LIB(Xxf86dga, XF86DGAQueryVersion,
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_DGA, 1, [Define if you have the XFree86 DGA extension])
|
2001-02-20 03:10:06 +00:00
|
|
|
DGA_LIBS="-lXxf86dga",,
|
|
|
|
[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS]
|
2002-04-12 19:02:06 +00:00
|
|
|
)],
|
|
|
|
[],
|
|
|
|
[#include <X11/Xlib.h>]
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(DGA_LIBS)
|
|
|
|
|
|
|
|
dnl SDL/SDL-GL checks
|
2001-06-07 06:55:03 +00:00
|
|
|
AC_ARG_ENABLE(sdl,
|
|
|
|
[ --disable-sdl disable checking for SDL],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$enable_sdl" != xno; then
|
2001-08-23 20:28:41 +00:00
|
|
|
AM_PATH_SDL(1.2.0,
|
2001-09-25 23:58:23 +00:00
|
|
|
HAVE_SDL=yes,
|
|
|
|
HAVE_SDL=no)
|
2001-06-07 06:55:03 +00:00
|
|
|
AC_SUBST(HAVE_SDL)
|
2001-10-21 21:20:59 +00:00
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
|
|
|
SDL_LIBS=`echo $SDL_LIBS | sed -e 's/-mwindows//'`
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
2001-10-05 19:36:35 +00:00
|
|
|
dnl XMMS Checks
|
|
|
|
AC_ARG_ENABLE(xmms,
|
|
|
|
[ --disable-xmms disable checking for XMMS],
|
|
|
|
)
|
|
|
|
|
2001-10-08 04:24:27 +00:00
|
|
|
if test "x$mingw" != xyes -a "x$enable_xmms" != xno; then
|
2001-10-05 19:36:35 +00:00
|
|
|
AM_PATH_XMMS(0.9.5.1,
|
|
|
|
HAVE_XMMS=yes,
|
|
|
|
HAVE_XMMS=no)
|
|
|
|
AC_SUBST(HAVE_XMMS)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for system type
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
dnl Checks for which system driver to use
|
|
|
|
AC_MSG_CHECKING(for system driver)
|
|
|
|
case "${host}" in
|
2001-09-30 22:59:28 +00:00
|
|
|
i?86-*-mingw32*)
|
|
|
|
SYSTYPE=WIN32
|
|
|
|
AC_MSG_RESULT([Win32 driver])
|
2002-06-04 16:17:10 +00:00
|
|
|
WIN32_LIBS=' $(NET_LIBS)'
|
2004-01-21 21:21:44 +00:00
|
|
|
if test "x$host" != "x$build"; then
|
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
|
|
|
WIN32_LIBS=" -L/usr/lib/w32api $WIN32_LIBS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2001-09-30 22:59:28 +00:00
|
|
|
;;
|
|
|
|
i?86-*-cygwin*)
|
|
|
|
SYSTYPE=WIN32
|
|
|
|
AC_MSG_RESULT([Win32 driver])
|
2002-06-04 16:17:10 +00:00
|
|
|
WIN32_LIBS=' $(NET_LIBS)'
|
2001-09-30 22:59:28 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
SYSTYPE=POSIX
|
|
|
|
AC_MSG_RESULT([default POSIX driver])
|
2002-06-04 16:17:10 +00:00
|
|
|
WIN32_LIBS=''
|
2001-09-30 22:59:28 +00:00
|
|
|
;;
|
2001-02-20 03:10:06 +00:00
|
|
|
esac
|
2003-08-06 18:20:48 +00:00
|
|
|
AM_CONDITIONAL(SYSTYPE_WIN32, test "x$SYSTYPE" = "xWIN32")
|
2002-06-04 16:17:10 +00:00
|
|
|
AC_SUBST(WIN32_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl Check for ia32
|
|
|
|
AC_MSG_CHECKING(for an ia32 machine)
|
|
|
|
case "${host}" in
|
|
|
|
i?86-*-*)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_MSG_CHECKING(to see if we should disable asm optimizations)
|
|
|
|
AC_ARG_ENABLE(asmopt,
|
|
|
|
[ --disable-asmopt disable assembler optimization],
|
|
|
|
AC_MSG_RESULT(yes),
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(USE_INTEL_ASM, 1, [Define this if you want to use Intel assembly optimizations])
|
2001-02-20 03:10:06 +00:00
|
|
|
ASM_ARCH=yes
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
;;
|
|
|
|
*) AC_MSG_RESULT(no)
|
|
|
|
esac
|
2003-08-06 18:20:48 +00:00
|
|
|
AM_CONDITIONAL(ASM_ARCH, test "x$ASM_ARCH" = "xyes")
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for sound
|
|
|
|
dnl ==================================================================
|
|
|
|
|
2001-02-21 21:13:29 +00:00
|
|
|
AC_CHECK_LIB(mme, waveOutOpen, HAVE_LIBMME=yes)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(alsa,
|
2001-05-19 00:05:35 +00:00
|
|
|
[ --disable-alsa disable checks for ALSA support])
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-09-26 08:00:13 +00:00
|
|
|
AC_ARG_ENABLE(oss,
|
2001-09-30 22:59:28 +00:00
|
|
|
[ --disable-oss disable checks for OSS support])
|
2001-09-26 08:00:13 +00:00
|
|
|
|
2001-04-10 23:18:08 +00:00
|
|
|
AC_ARG_ENABLE(sound,
|
2001-09-26 08:00:13 +00:00
|
|
|
[ --disable-sound disable sound outright])
|
2001-04-10 23:18:08 +00:00
|
|
|
|
2001-10-11 23:21:40 +00:00
|
|
|
unset SOUND_TYPES
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_CHECKING(for sound support)
|
|
|
|
|
2001-08-01 22:43:16 +00:00
|
|
|
HAVE_ALSA=no
|
2001-09-24 23:18:05 +00:00
|
|
|
if test "x$enable_alsa" != "xno"; then
|
|
|
|
if test "x$ac_cv_header_sys_asoundlib_h" = "xyes" -o \
|
|
|
|
"x$ac_cv_header_alsa_asoundlib_h" = "xyes"; then
|
2001-09-30 22:59:28 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
2003-09-09 18:43:38 +00:00
|
|
|
[
|
2001-09-24 23:18:05 +00:00
|
|
|
#include <alsa/asoundlib.h>
|
2004-01-19 20:37:58 +00:00
|
|
|
#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) && \
|
|
|
|
defined(SND_LIB_SUBMINOR)
|
|
|
|
#if SND_LIB_MAJOR > 0 || (SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9 && \
|
|
|
|
SND_LIB_SUBMINOR >= 8)
|
2001-02-20 03:10:06 +00:00
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
#endif
|
2003-09-09 18:43:38 +00:00
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES ALSA"
|
|
|
|
ALSA_LIBS="-lasound"
|
|
|
|
HAVE_ALSA=yes,
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-09-27 17:12:17 +00:00
|
|
|
#include <sys/asoundlib.h>
|
2004-01-19 20:37:58 +00:00
|
|
|
#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) && \
|
|
|
|
defined(SND_LIB_SUBMINOR)
|
|
|
|
#if SND_LIB_MAJOR > 0 || (SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9 && \
|
|
|
|
SND_LIB_SUBMINOR >= 8)
|
2001-09-27 17:12:17 +00:00
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
#endif
|
2003-09-09 18:43:38 +00:00
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES ALSA"
|
|
|
|
ALSA_LIBS="-lasound"
|
|
|
|
HAVE_ALSA=yes
|
|
|
|
)
|
2001-09-24 23:18:05 +00:00
|
|
|
)
|
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2004-01-19 21:41:52 +00:00
|
|
|
if test "x$HAVE_ALSA" = "xno"; then
|
2004-01-19 20:37:58 +00:00
|
|
|
if test "x$enable_alsa" != "xno"; then
|
|
|
|
if test "x$ac_cv_header_sys_asoundlib_h" = "xyes" -o \
|
|
|
|
"x$ac_cv_header_alsa_asoundlib_h" = "xyes"; then
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <alsa/asoundlib.h>
|
|
|
|
#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) && \
|
|
|
|
defined(SND_LIB_SUBMINOR)
|
|
|
|
#if SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9 && SND_LIB_SUBMINOR < 8
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES ALSA0_9"
|
|
|
|
ALSA_LIBS="-lasound"
|
|
|
|
HAVE_ALSA=yes,
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <sys/asoundlib.h>
|
|
|
|
#if (defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) && \
|
|
|
|
defined(SND_LIB_SUBMINOR)
|
|
|
|
#if SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9 && SND_LIB_SUBMINOR < 8
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES ALSA0_9"
|
|
|
|
ALSA_LIBS="-lasound"
|
|
|
|
HAVE_ALSA=yes
|
|
|
|
)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_SUBST(ALSA_LIBS)
|
2001-08-01 22:43:16 +00:00
|
|
|
AC_SUBST(HAVE_ALSA)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2002-08-14 05:16:11 +00:00
|
|
|
SOUND_TYPES="$SOUND_TYPES NULL DISK"
|
2001-10-01 22:52:38 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl MME
|
2001-05-19 00:05:35 +00:00
|
|
|
if test "x$ac_cv_header_mme_mmsystem_h" = "xyes" -a \
|
|
|
|
"x$HAVE_LIBMME" = "xyes"; then
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <mme/mmsystem.h>
|
|
|
|
#ifdef WAVE_OPEN_SHAREABLE
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
],
|
2001-05-19 00:05:35 +00:00
|
|
|
SOUND_TYPES="$SOUND_TYPES MME"
|
|
|
|
MME_LIBS="-lmme"
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
fi
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_SUBST(MME_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl OSS
|
2001-08-01 22:43:16 +00:00
|
|
|
HAVE_OSS=no
|
2001-09-26 08:00:13 +00:00
|
|
|
if test "x$enable_oss" != "xno"; then
|
2001-09-30 22:59:28 +00:00
|
|
|
if test "x$ac_cv_header_sys_soundcard_h" = "xyes" -o \
|
2001-05-19 00:05:35 +00:00
|
|
|
"x$ac_cv_header_machine_soundcard_h" = "xyes" -o \
|
|
|
|
"x$ac_cv_header_linux_soundcard_h" = "xyes"; then
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <sys/soundcard.h>
|
|
|
|
#ifdef SNDCTL_DSP_SETTRIGGER
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
2001-08-01 22:43:16 +00:00
|
|
|
SOUND_TYPES="$SOUND_TYPES OSS"
|
2001-09-24 21:22:25 +00:00
|
|
|
HAVE_OSS=yes
|
|
|
|
OSS_LIBS=
|
|
|
|
,
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <linux/soundcard.h>
|
|
|
|
#ifdef SNDCTL_DSP_SETTRIGGER
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
2001-08-01 22:43:16 +00:00
|
|
|
SOUND_TYPES="$SOUND_TYPES OSS"
|
2001-09-24 21:22:25 +00:00
|
|
|
HAVE_OSS=yes
|
|
|
|
OSS_LIBS=
|
|
|
|
,
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <machine/soundcard.h>
|
|
|
|
#ifdef SNDCTL_DSP_SETTRIGGER
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES OSS"
|
2001-08-01 22:43:16 +00:00
|
|
|
HAVE_OSS=yes
|
2001-09-24 21:22:25 +00:00
|
|
|
OSS_LIBS=
|
2001-05-19 00:05:35 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2001-09-26 08:00:13 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
AC_SUBST(HAVE_OSS)
|
2001-09-24 21:22:25 +00:00
|
|
|
AC_SUBST(OSS_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-05-19 00:05:35 +00:00
|
|
|
dnl SDL digital audio
|
2001-05-19 07:28:04 +00:00
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
SOUND_TYPES="$SOUND_TYPES SDL"
|
|
|
|
fi
|
2001-05-19 00:05:35 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl SGI
|
2001-05-19 00:05:35 +00:00
|
|
|
if test "x$ac_cv_header_dmedia_audio_h" = "xyes"; then
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <dmedia/audio.h>
|
|
|
|
#ifdef AL_SAMPLE_16
|
2001-05-19 00:05:35 +00:00
|
|
|
# ifdef AL_RATE
|
2001-02-20 03:10:06 +00:00
|
|
|
QF_maGiC_VALUE
|
2001-05-19 00:05:35 +00:00
|
|
|
# endif
|
2001-02-20 03:10:06 +00:00
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES SGI"
|
|
|
|
SGISND_LIBS="-laudio")
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_SUBST(SGISND_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl Sun
|
2001-05-19 00:05:35 +00:00
|
|
|
if test "x$ac_cv_header_sys_audioio_h" = "xyes"; then
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <sys/audioio.h>
|
|
|
|
#ifdef AUDIO_SETINFO
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
|
|
|
SOUND_TYPES="$SOUND_TYPES SUN"
|
|
|
|
)
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Win32
|
2003-03-10 21:21:22 +00:00
|
|
|
if test "x$ac_cv_header_windows_h" = "xyes"; then
|
|
|
|
SOUND_TYPES="$SOUND_TYPES Win32"
|
|
|
|
WINSND_LIBS="-lwinmm"
|
|
|
|
if test "x$ac_cv_header_dsound_h" = "xyes"; then
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <windows.h>
|
2001-04-11 05:10:42 +00:00
|
|
|
#include <dsound.h>
|
2001-02-20 03:10:06 +00:00
|
|
|
#ifdef GMEM_MOVEABLE
|
2001-05-19 00:05:35 +00:00
|
|
|
# ifdef DirectSoundEnumerate
|
2001-02-20 03:10:06 +00:00
|
|
|
QF_maGiC_VALUE
|
2001-05-19 00:05:35 +00:00
|
|
|
# endif
|
2001-02-20 03:10:06 +00:00
|
|
|
#endif
|
2001-05-19 00:05:35 +00:00
|
|
|
],
|
2003-03-10 21:21:22 +00:00
|
|
|
SOUND_TYPES="$SOUND_TYPES DirectX"
|
2001-05-19 00:05:35 +00:00
|
|
|
)
|
2003-03-10 21:21:22 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-05-19 00:05:35 +00:00
|
|
|
AC_SUBST(WINSND_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-04-10 23:18:08 +00:00
|
|
|
if test "x$enable_sound" = "xno"; then
|
2001-10-11 23:21:40 +00:00
|
|
|
unset SOUND_TYPES
|
2001-04-10 23:18:08 +00:00
|
|
|
fi
|
|
|
|
|
2001-05-19 00:05:35 +00:00
|
|
|
if test "$SOUND_TYPES"; then
|
|
|
|
AC_MSG_RESULT([$SOUND_TYPES])
|
2001-02-20 03:10:06 +00:00
|
|
|
else
|
2003-01-31 23:16:28 +00:00
|
|
|
AC_MSG_RESULT([no])
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Tests for joystick support
|
|
|
|
AC_MSG_CHECKING(for joystick support)
|
|
|
|
if test -z "$JOYTYPE" -a "x$ac_cv_header_linux_joystick_h" = "xyes"; then
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],[
|
|
|
|
#include <linux/joystick.h>
|
|
|
|
#ifdef JS_VERSION
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
], JOYTYPE="Linux")
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$JOYTYPE" -a "x$ac_cv_header_dinput_h" = "xyes"; then
|
|
|
|
JOYTYPE="Win32"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$JOYTYPE"; then
|
2001-08-01 22:51:42 +00:00
|
|
|
AC_MSG_RESULT([$JOYTYPE])
|
2001-02-20 03:10:06 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no, using null joystick driver])
|
|
|
|
fi
|
|
|
|
AC_SUBST(JOY_LIBS)
|
|
|
|
AC_SUBST(JOY_CFLAGS)
|
|
|
|
AM_CONDITIONAL(JOYTYPE_LINUX, test "$JOYTYPE" = "Linux")
|
|
|
|
AM_CONDITIONAL(JOYTYPE_WIN32, test "$JOYTYPE" = "Win32")
|
|
|
|
AM_CONDITIONAL(JOYTYPE_NULL, test "$JOYTYPE" != "Linux" -a "$JOYTYPE" != "Win32")
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for CD-ROM
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
CD_CFLAGS=""
|
2004-11-18 06:08:00 +00:00
|
|
|
if test "x$HAVE_VORBIS" = xyes; then
|
|
|
|
CD_PLUGIN_TARGETS="cd_file.la"
|
|
|
|
else
|
|
|
|
CD_PLUGIN_TARGETS=""
|
|
|
|
fi
|
2001-10-11 23:21:40 +00:00
|
|
|
unset CDTYPE
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(for CD audio support)
|
|
|
|
|
|
|
|
dnl Linux
|
2001-06-01 22:55:33 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <linux/cdrom.h>
|
|
|
|
#ifdef CDROMREADTOCENTRY
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-06-01 22:55:33 +00:00
|
|
|
],
|
2001-08-01 22:52:34 +00:00
|
|
|
CDTYPE="$CDTYPE Linux"
|
2002-08-01 19:49:10 +00:00
|
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_linux.la"
|
2001-06-01 22:55:33 +00:00
|
|
|
)
|
|
|
|
|
2001-10-05 19:36:35 +00:00
|
|
|
dnl XMMS audio
|
|
|
|
if test "x$HAVE_XMMS" = "xyes"; then
|
|
|
|
CDTYPE="$CDTYPE XMMS"
|
2002-08-01 19:49:10 +00:00
|
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_xmms.la"
|
2001-10-05 19:36:35 +00:00
|
|
|
AC_DEFINE(HAVE_XMMS, [1], [Define if you have XMMS])
|
|
|
|
fi
|
|
|
|
|
2001-06-01 22:55:33 +00:00
|
|
|
dnl SDL CD audio
|
|
|
|
if test "x$HAVE_SDL" = "xyes"; then
|
|
|
|
CDTYPE="$CDTYPE SDL"
|
2002-08-01 19:49:10 +00:00
|
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_sdl.la"
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl SGI
|
2001-06-01 22:55:33 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <dmedia/cdaudio.h>
|
|
|
|
#ifdef CD_READY
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-06-01 22:55:33 +00:00
|
|
|
],
|
|
|
|
CDTYPE="$CDTYPE SGI"
|
2002-08-01 19:49:10 +00:00
|
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_sgi.la"
|
2001-06-01 22:55:33 +00:00
|
|
|
SGI_CD_LIBS="-lcdaudio -lmediad -lds"
|
|
|
|
)
|
2001-09-25 23:04:13 +00:00
|
|
|
AC_SUBST(SGI_CD_LIBS)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-06-01 22:55:33 +00:00
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
#include <windows.h>
|
2001-04-11 05:10:42 +00:00
|
|
|
#include <mmsystem.h>
|
2001-02-20 03:10:06 +00:00
|
|
|
#if defined(MCI_SET_DOOR_OPEN)
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
2001-06-01 22:55:33 +00:00
|
|
|
],
|
|
|
|
CDTYPE="$CDTYPE WIN32"
|
2002-08-01 19:49:10 +00:00
|
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_win.la"
|
2001-06-01 22:55:33 +00:00
|
|
|
)
|
2001-08-01 22:51:42 +00:00
|
|
|
if test "$CDTYPE"; then
|
|
|
|
AC_MSG_RESULT([$CDTYPE])
|
|
|
|
else
|
2003-01-31 23:16:28 +00:00
|
|
|
AC_MSG_RESULT([no])
|
2001-08-01 22:51:42 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_SUBST(CD_LIBS)
|
|
|
|
AC_SUBST(CD_CFLAGS)
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for networking
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
if test "x$ac_cv_func_connect" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(socket, connect,
|
|
|
|
NET_LIBS="$NET_LIBS -lsocket"
|
|
|
|
ac_cv_func_connect=yes
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
if test "x$ac_cv_func_gethostbyname" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(nsl, gethostbyname,
|
|
|
|
NET_LIBS="$NET_LIBS -lnsl"
|
|
|
|
ac_cv_func_gethostbyname=yes
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for connect in -lwsock32])
|
|
|
|
SAVELIBS="$LIBS"
|
|
|
|
LIBS="$LIBS -lwsock32"
|
|
|
|
AC_TRY_LINK([
|
|
|
|
#include <winsock.h>
|
2001-09-30 22:59:28 +00:00
|
|
|
],
|
|
|
|
[
|
2001-02-20 03:10:06 +00:00
|
|
|
connect(0, NULL, 42);
|
|
|
|
],
|
|
|
|
NET_LIBS="$NET_LIBS -lwsock32 -lwinmm"
|
|
|
|
ac_cv_func_connect=yes
|
|
|
|
ac_cv_func_gethostbyname=yes
|
|
|
|
HAVE_WSOCK=yes
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
LIBS="$SAVELIBS"
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for UDP support)
|
|
|
|
if test "x$ac_cv_func_connect" = "xyes" -a "x$ac_cv_func_gethostbyname" = "xyes"; then
|
|
|
|
HAVE_UDP=yes
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$ac_cv_func_connect" != "xyes"; then
|
|
|
|
AC_MSG_CHECKING([for connect in -lwsock32])
|
|
|
|
SAVELIBS="$LIBS"
|
|
|
|
LIBS="$LIBS -lwsock32"
|
|
|
|
AC_TRY_LINK([
|
|
|
|
#include <winsock.h>
|
2001-09-30 22:59:28 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
connect (0, NULL, 42);
|
|
|
|
],
|
2001-02-20 03:10:06 +00:00
|
|
|
NET_LIBS="$NET_LIBS -lwsock32 -lwinmm"
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
LIBS="$SAVELIBS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(NET_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
dnl ==================================================================
|
|
|
|
dnl Misc checks
|
|
|
|
dnl ==================================================================
|
|
|
|
|
2001-08-01 03:44:27 +00:00
|
|
|
if test -d $srcdir/CVS; then
|
|
|
|
cvs_def_enabled="!= xno"
|
|
|
|
cvs_def_disabled="= xyes"
|
|
|
|
else
|
|
|
|
cvs_def_enabled="= xyes"
|
|
|
|
cvs_def_disabled="!= xno"
|
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl Set $prefix and $exec_prefix to $ac_default_prefix if they are not set
|
2001-09-30 22:59:28 +00:00
|
|
|
test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
|
|
|
|
test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-09-30 22:59:28 +00:00
|
|
|
if test "x$SYSTYPE" = "xWIN32"; then
|
2001-02-21 21:13:29 +00:00
|
|
|
default_globalconf="~/${PACKAGE}.conf"
|
|
|
|
default_userconf="~/${PACKAGE}rc"
|
2001-02-20 03:10:06 +00:00
|
|
|
default_sharepath="."
|
|
|
|
default_userpath="."
|
|
|
|
else
|
2001-02-20 23:06:48 +00:00
|
|
|
default_globalconf="/etc/${PACKAGE}.conf"
|
2001-02-20 03:10:06 +00:00
|
|
|
default_userconf="~/.${PACKAGE}rc"
|
|
|
|
eval foo="$datadir"
|
|
|
|
default_sharepath="$foo/games/$PACKAGE"
|
|
|
|
default_userpath="~/.$PACKAGE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_ARG_WITH(global-cfg,
|
|
|
|
[ --with-global-cfg=FILE If set will change the name and location of the
|
|
|
|
global config file used by QuakeForge. Defaults to
|
|
|
|
/etc/quakeforge.conf.],
|
|
|
|
globalconf="$withval", globalconf="auto")
|
|
|
|
if test "x$globalconf" = "xauto" || test "x$globalconf" = "xyes" || \
|
|
|
|
test "x$globalconf" = "xno"; then dnl yes/no sanity checks
|
|
|
|
globalconf="$default_globalconf"
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(FS_GLOBALCFG, "$globalconf", [Define this to the location of the global config file])
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH(user-cfg,
|
|
|
|
[ --with-user-cfg=FILE If set will change the name and location of the
|
2001-07-31 10:23:42 +00:00
|
|
|
user-specific config file used by QuakeForge.
|
|
|
|
Defaults to ~/.quakeforgerc.],
|
2002-02-23 17:09:41 +00:00
|
|
|
userconf="$withval", userconf="auto")
|
2001-02-20 03:10:06 +00:00
|
|
|
if test "x$userconf" = "xauto" || test "x$userconf" = "xyes" || \
|
|
|
|
test "x$userconf" = "xno"; then dnl yes/no sanity checks
|
|
|
|
userconf="$default_userconf"
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(FS_USERCFG, "$userconf", [Define this to the location of the user config file])
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH(sharepath,
|
|
|
|
[ --with-sharepath=DIR Use DIR for shared game data, defaults to
|
|
|
|
'.' or \${datadir}/games/quakeforge (if new style)],
|
|
|
|
sharepath=$withval, sharepath="auto")
|
|
|
|
if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"; then
|
|
|
|
sharepath="$default_sharepath"
|
|
|
|
elif test "x$sharepath" = xno; then
|
|
|
|
sharepath="."
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(FS_SHAREPATH, "$sharepath", [Define this to the shared game directory root])
|
2002-01-22 06:22:52 +00:00
|
|
|
AC_SUBST(sharepath)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH(userpath,
|
|
|
|
[ --with-userpath=DIR Use DIR for unshared game data, defaults to
|
|
|
|
'.' or ~/.quakeforge (if new style)],
|
|
|
|
userpath=$withval, userpath="auto")
|
|
|
|
if test "x$userpath" = "xauto" -o "x$userpath" = "xyes" -o "x$userpath" = "x"; then
|
|
|
|
userpath="$default_userpath"
|
|
|
|
elif test "x$userpath" = xno; then
|
|
|
|
userpath="."
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(FS_USERPATH, "$userpath", [Define this to the unshared game directory root])
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2001-05-19 03:41:22 +00:00
|
|
|
AC_ARG_WITH(plugin-path,
|
2001-09-25 23:58:23 +00:00
|
|
|
[ --with-plugin-path=DIR Use DIR for loading plugins, defaults to
|
2003-02-12 22:51:14 +00:00
|
|
|
\${libdir}/quakeforge],
|
2001-09-28 10:31:20 +00:00
|
|
|
plugindir=$withval, plugindir="auto")
|
2001-04-24 22:19:42 +00:00
|
|
|
|
2003-02-12 22:51:14 +00:00
|
|
|
PLUGINDIR="\${libdir}/quakeforge"
|
2001-09-28 10:31:20 +00:00
|
|
|
if test "x$plugindir" = "xauto" -o "x$plugindir" = "xyes" -o "x$plugindir" = "x"; then
|
2001-10-15 20:35:47 +00:00
|
|
|
plugindir="$PLUGINDIR"
|
2001-09-28 10:31:20 +00:00
|
|
|
elif test "x$plugindir" = xno; then
|
|
|
|
plugindir="."
|
2001-05-28 19:30:32 +00:00
|
|
|
else
|
2001-10-15 20:35:47 +00:00
|
|
|
PLUGINDIR="$plugindir"
|
2001-04-24 22:19:42 +00:00
|
|
|
fi
|
2001-10-15 20:35:47 +00:00
|
|
|
eval expanded_plugindir="$plugindir"
|
|
|
|
eval expanded_plugindir="$expanded_plugindir"
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(FS_PLUGINPATH, "$expanded_plugindir", [Define this to the path from which to load plugins])
|
2001-09-28 10:31:20 +00:00
|
|
|
AC_SUBST(plugindir)
|
2001-05-28 19:30:32 +00:00
|
|
|
AC_SUBST(PLUGINDIR)
|
2001-04-24 22:19:42 +00:00
|
|
|
|
2002-02-22 08:55:24 +00:00
|
|
|
AC_ARG_WITH(gl-driver,
|
2002-06-11 14:55:13 +00:00
|
|
|
[ --with-gl-driver=NAME Name of OpenGL driver DLL/DSO],
|
2002-02-23 17:09:41 +00:00
|
|
|
gl_driver=$withval,
|
2002-02-22 08:55:24 +00:00
|
|
|
gl_driver=auto
|
|
|
|
)
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$gl_driver" = xauto -o "x$gl_driver" = xyes; then
|
2002-02-22 08:55:24 +00:00
|
|
|
if test "$SYSTYPE" = WIN32; then
|
|
|
|
gl_driver="OPENGL32.DLL"
|
|
|
|
else
|
|
|
|
gl_driver="libGL.so.1"
|
|
|
|
fi
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(GL_DRIVER, "$gl_driver", [Define this to the default GL dynamic lib])
|
2002-02-22 08:55:24 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl CFLAGS for release and devel versions
|
2002-08-27 00:27:33 +00:00
|
|
|
AC_ARG_WITH(efence,
|
|
|
|
[ --with-efence link with -lefence],
|
|
|
|
AC_CHECK_LIB(efence,malloc)
|
|
|
|
)
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_ARG_ENABLE(debug,
|
2001-08-22 22:02:15 +00:00
|
|
|
[ --disable-debug compile without debugging],
|
2001-02-20 03:10:06 +00:00
|
|
|
debug=$enable_debug
|
|
|
|
)
|
|
|
|
AC_MSG_CHECKING(for debugging)
|
2001-08-22 22:02:15 +00:00
|
|
|
if test "x$debug" != xno; then
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
BUILD_TYPE="$BUILD_TYPE Debug"
|
|
|
|
CFLAGS="$CFLAGS -g"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(optimize,
|
|
|
|
[ --disable-optimize compile without optimizations (for development)],
|
2001-10-27 00:23:51 +00:00
|
|
|
optimize=$enable_optimize,
|
2001-02-20 03:10:06 +00:00
|
|
|
optimize=yes
|
|
|
|
)
|
2001-02-21 21:13:29 +00:00
|
|
|
|
2001-06-08 00:11:54 +00:00
|
|
|
AC_ARG_ENABLE(typecheck-progs,
|
2001-09-30 22:59:28 +00:00
|
|
|
[ --enable-typecheck-progs Enable type checking on progs field access])
|
|
|
|
if test "x$enable_typecheck_progs" = xyes; then
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(TYPECHECK_PROGS, 1, [Define this if you want progs typechecking])
|
2001-06-08 00:11:54 +00:00
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_CHECKING(for optimization)
|
|
|
|
if test "x$optimize" = xyes; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
BUILD_TYPE="$BUILD_TYPE Optimize"
|
|
|
|
if test "x$GCC" = xyes; then
|
2002-02-23 17:43:58 +00:00
|
|
|
set $CC
|
|
|
|
shift
|
|
|
|
args="$*"
|
|
|
|
AC_MSG_CHECKING(for gcc version)
|
2002-06-16 01:27:56 +00:00
|
|
|
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/.*(GCC)//' -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
|
2002-02-26 05:18:08 +00:00
|
|
|
set $CCVER
|
|
|
|
IFS="."
|
|
|
|
set $2
|
|
|
|
CC_MAJ=$1
|
|
|
|
CC_MIN=$2
|
|
|
|
CC_SUB=$3
|
|
|
|
IFS=" "
|
2002-02-23 17:43:58 +00:00
|
|
|
AC_MSG_RESULT($CCVER)
|
2003-08-11 16:02:06 +00:00
|
|
|
saved_cflags="$CFLAGS"
|
|
|
|
CFLAGS=""
|
|
|
|
QF_CC_OPTION(-frename-registers)
|
|
|
|
QF_CC_OPTION(-finline-limit=32000 -Winline)
|
|
|
|
heavy="-O2 $CFLAGS -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
|
|
|
CFLAGS="$saved_cflags"
|
2002-04-26 18:03:16 +00:00
|
|
|
light="-O2"
|
2001-11-20 04:50:21 +00:00
|
|
|
AC_ARG_ENABLE(strict-aliasing,
|
2003-10-22 20:08:34 +00:00
|
|
|
[ --enable-strict-aliasing enable the -fstrict-aliasing option of gcc])
|
2002-01-23 03:13:31 +00:00
|
|
|
if test "x$enable_strict_aliasing" = "xyes"; then
|
2002-02-26 05:18:08 +00:00
|
|
|
heavy="$heavy -fstrict-aliasing"
|
|
|
|
light="$light -fstrict-aliasing"
|
2002-01-23 03:13:31 +00:00
|
|
|
else
|
|
|
|
if test "x$enable_strict_aliasing" != "xno"; then
|
2002-02-26 05:18:08 +00:00
|
|
|
if test $CC_MAJ -ge 3; then
|
|
|
|
heavy="$heavy -fstrict-aliasing"
|
2002-01-23 04:12:53 +00:00
|
|
|
else
|
2002-02-26 05:18:08 +00:00
|
|
|
if test $CC_MAJ = 2 -a $CC_MIN = 96; then
|
|
|
|
light="$light -fno-strict-aliasing"
|
2002-01-23 04:12:53 +00:00
|
|
|
fi
|
2002-01-23 03:13:31 +00:00
|
|
|
fi
|
2002-01-23 04:12:53 +00:00
|
|
|
else
|
2002-02-26 05:18:08 +00:00
|
|
|
if test $CC_MAJ = 2 -a $CC_MIN = 96; then
|
|
|
|
light="$light -fno-strict-aliasing"
|
2002-01-23 04:12:53 +00:00
|
|
|
fi
|
2002-01-23 03:13:31 +00:00
|
|
|
fi
|
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_CHECKING(for special compiler settings)
|
2002-04-10 18:22:46 +00:00
|
|
|
AC_ARG_WITH(arch,
|
|
|
|
[ --with-arch=ARCH control compiler architecture directly],
|
|
|
|
arch="$withval", arch=auto
|
|
|
|
)
|
|
|
|
case "$arch" in
|
|
|
|
auto)
|
2003-07-10 05:10:34 +00:00
|
|
|
case "${target_cpu}" in
|
2002-04-10 18:22:46 +00:00
|
|
|
i?86)
|
2003-07-10 05:10:34 +00:00
|
|
|
MORE_CFLAGS="-march=${target_cpu}"
|
2002-04-10 18:22:46 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
MORE_CFLAGS=""
|
|
|
|
;;
|
|
|
|
esac
|
2001-02-20 03:10:06 +00:00
|
|
|
;;
|
2002-04-10 18:22:46 +00:00
|
|
|
no|"")
|
2001-02-20 03:10:06 +00:00
|
|
|
MORE_CFLAGS=""
|
|
|
|
;;
|
2002-04-10 18:22:46 +00:00
|
|
|
*)
|
|
|
|
MORE_CFLAGS="-march=$arch"
|
|
|
|
;;
|
2001-02-20 03:10:06 +00:00
|
|
|
esac
|
|
|
|
if test "x$MORE_CFLAGS" = x; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
else
|
2001-07-09 16:56:01 +00:00
|
|
|
save_CFLAGS="$CFLAGS"
|
2001-02-20 03:10:06 +00:00
|
|
|
CFLAGS="$CFLAGS $MORE_CFLAGS"
|
2001-07-09 16:56:01 +00:00
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
CFLAGS="$save_CFLAGS"
|
2002-04-26 18:03:16 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
if test $CC_MAJ = 2 -a $CC_MIN = 96; then
|
|
|
|
AC_MSG_CHECKING(if align options work)
|
|
|
|
save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
light="$light -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
|
|
AC_MSG_RESULT(yes),
|
|
|
|
AC_MSG_RESULT(no)
|
2001-07-09 16:56:01 +00:00
|
|
|
)
|
2002-04-26 18:03:16 +00:00
|
|
|
CFLAGS="$save_CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $light"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS $heavy"
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
CFLAGS=-O2
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl CFLAGS for release and devel versions
|
|
|
|
AC_ARG_ENABLE(profile,
|
|
|
|
[ --enable-profile compile with profiling (for development)],
|
|
|
|
profile=$enable_profile
|
|
|
|
)
|
|
|
|
if test "x$profile" = xyes; then
|
|
|
|
BUILD_TYPE="$BUILD_TYPE Profile"
|
|
|
|
if test "x$GCC" = xyes; then
|
2001-05-19 00:05:35 +00:00
|
|
|
CFLAGS="`echo $CFLAGS | sed -e 's/-fomit-frame-pointer//g'` -pg"
|
2001-02-20 03:10:06 +00:00
|
|
|
LDFLAGS="$LDFLAGS -pg"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS -p"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
check_pipe=no
|
|
|
|
if test "x$GCC" = xyes; then
|
|
|
|
dnl Check for -pipe vs -save-temps.
|
|
|
|
AC_MSG_CHECKING(for -pipe vs -save-temps)
|
|
|
|
AC_ARG_ENABLE(save-temps,
|
|
|
|
[ --enable-save-temps save temporary files],
|
2001-09-30 22:59:28 +00:00
|
|
|
AC_MSG_RESULT(-save-temps)
|
|
|
|
CFLAGS="$CFLAGS -save-temps"
|
|
|
|
BUILD_TYPE="$BUILD_TYPE Save-temps"
|
|
|
|
,
|
|
|
|
AC_MSG_RESULT(-pipe)
|
|
|
|
check_pipe=yes
|
|
|
|
)
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
if test "x$check_pipe" = xyes; then
|
2003-08-11 16:02:06 +00:00
|
|
|
QF_CC_OPTION(-pipe)
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2005-05-02 06:30:18 +00:00
|
|
|
QF_CC_OPTION(-Wsign-compare)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl QuakeForge uses lots of BCPL-style (//) comments, which can cause problems
|
|
|
|
dnl with many compilers that don't support the latest ISO standards. Well,
|
|
|
|
dnl that is our cover story -- the reality is that we like them and don't want
|
|
|
|
dnl to give them up. :)
|
|
|
|
dnl Make the compiler swallow its pride...
|
|
|
|
if test "x$GCC" != xyes; then
|
|
|
|
AC_MSG_CHECKING(for how to deal with BCPL-style comments)
|
|
|
|
case "${host}" in
|
|
|
|
*-aix*)
|
|
|
|
CFLAGS="$CFLAGS -qcpluscmt"
|
|
|
|
AC_MSG_RESULT([-qcpluscmt])
|
|
|
|
;;
|
|
|
|
*-irix6*)
|
|
|
|
CFLAGS="$CFLAGS -Xcpluscomm"
|
|
|
|
AC_MSG_RESULT([-Xcpluscomm])
|
|
|
|
;;
|
|
|
|
*-solaris*)
|
|
|
|
CFLAGS="$CFLAGS -xCC"
|
|
|
|
AC_MSG_RESULT([-xCC])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_RESULT(nothing needed or no switch known)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2001-07-30 23:35:33 +00:00
|
|
|
AC_ARG_ENABLE(Werror,
|
|
|
|
[ --enable-Werror treat warnings as errors]
|
|
|
|
)
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl We want warnings, lots of warnings...
|
2001-07-30 23:35:33 +00:00
|
|
|
if test "x$GCC" = "xyes"; then
|
2001-08-01 03:44:27 +00:00
|
|
|
if test "x$enable_Werror" $cvs_def_enabled; then
|
2003-08-11 16:02:06 +00:00
|
|
|
CFLAGS="$CFLAGS -Wall -Werror -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
|
2001-07-30 23:35:33 +00:00
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
|
|
|
fi
|
2001-10-23 16:55:23 +00:00
|
|
|
CFLAGS="$CFLAGS -fno-common"
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
|
2001-09-25 23:04:13 +00:00
|
|
|
AS="$CC"
|
2001-10-09 22:26:38 +00:00
|
|
|
if test "x$SYSTYPE" = "xWIN32"; then
|
2004-01-20 03:47:27 +00:00
|
|
|
ASFLAGS="\$(DEFS) \$(CFLAGS) \$(CPPFLAGS) \$(DEFAULT_INCLUDES) \$(INCLUDES) -D_WIN32"
|
2002-04-29 19:19:26 +00:00
|
|
|
plugin_ldflags="-no-undefined"
|
|
|
|
plugin_libadd="-luser32 -lgdi32 -lwinmm"
|
2004-01-21 21:21:44 +00:00
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
|
|
|
if test "x$host" != "x$build"; then
|
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
|
|
|
plugin_libadd=" -L/usr/lib/w32api $plugin_libadd"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2001-10-09 21:36:57 +00:00
|
|
|
else
|
|
|
|
ASFLAGS="\$(DEFS) \$(CFLAGS) \$(CPPFLAGS) \$(DEFAULT_INCLUDES) \$(INCLUDES)"
|
2002-04-29 19:19:26 +00:00
|
|
|
plugin_ldflags=
|
|
|
|
plugin_libadd=
|
2001-10-09 21:36:57 +00:00
|
|
|
fi
|
2003-07-09 06:28:09 +00:00
|
|
|
ASFLAGS="$ASFLAGS -DQFASM"
|
2002-04-29 19:19:26 +00:00
|
|
|
CCASFLAGS="$ASFLAGS"
|
|
|
|
CCAS="$AS"
|
2001-09-25 23:04:13 +00:00
|
|
|
AC_SUBST(AS)
|
|
|
|
AC_SUBST(ASFLAGS)
|
2002-04-29 19:19:26 +00:00
|
|
|
AC_SUBST(CCAS)
|
|
|
|
AC_SUBST(CCASFLAGS)
|
2001-09-25 23:04:13 +00:00
|
|
|
|
2002-08-15 19:08:44 +00:00
|
|
|
dnl silence automake about .r files
|
|
|
|
F77=touch
|
|
|
|
AC_SUBST(F77)
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
dnl Make sure we link against a working zlib
|
|
|
|
dnl ==================================================================
|
|
|
|
|
2001-10-06 01:07:24 +00:00
|
|
|
if test "x$HAVE_ZLIB" = xyes; then
|
|
|
|
x11_old_libz=no
|
|
|
|
if test -n "$X_LIBS"; then
|
|
|
|
AC_MSG_CHECKING(for libz.a in X11)
|
|
|
|
for d in `echo $X_LIBS | sed -e 's/-L//'`; do
|
|
|
|
if test -f $d/libz.a; then
|
|
|
|
x11_old_libz=$d
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
if test "x$x11_old_libz" != xno; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_MSG_WARN(there is an old libz.a in $x11_old_libz)
|
|
|
|
AC_MSG_WARN($PROGRAM is unable to support compression)
|
|
|
|
AC_MSG_WARN(due to library search order issues)
|
|
|
|
AC_MSG_WARN(if you wish to have compression support)
|
|
|
|
AC_MSG_WARN(please delete $x11_old_libz/libz.a)
|
|
|
|
ac_cv_header_zlib_h=no
|
|
|
|
HAVE_ZLIB="no, due to conflicting $x11_old_libz/libz.a"
|
|
|
|
Z_LIBS=""
|
|
|
|
else
|
2001-10-29 17:46:03 +00:00
|
|
|
if test -n "$X_LIBS"; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE(HAVE_ZLIB, 1, [Define if you have zlib])
|
2001-10-06 01:07:24 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(Z_LIBS)
|
2002-04-10 19:11:19 +00:00
|
|
|
AM_CONDITIONAL(HAVE_ZLIB, test "$HAVE_ZLIB" = "yes")
|
2001-02-20 03:10:06 +00:00
|
|
|
|
|
|
|
dnl ==================================================================
|
2001-06-07 01:28:27 +00:00
|
|
|
dnl Find out what to build
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
QF_WITH_TARGETS(
|
|
|
|
clients,
|
|
|
|
[ --with-clients=<list> compile clients in <list>:],
|
|
|
|
[3dfx,fbdev,glx,mgl,sdl,sdl32,sgl,svga,wgl,x11],dummy
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
2002-09-17 22:19:14 +00:00
|
|
|
QF_WITH_TARGETS(
|
|
|
|
servers,
|
|
|
|
[ --with-servers=<list> compile dedicated server:],
|
2004-02-18 23:21:11 +00:00
|
|
|
[master,nq,qw,qtv],dummy
|
2002-09-17 22:19:14 +00:00
|
|
|
)
|
|
|
|
QF_WITH_TARGETS(
|
|
|
|
tools,
|
|
|
|
[ --with-tools=<list> compile qf tools:],
|
2005-05-01 11:48:36 +00:00
|
|
|
[bsp2img,carne,gsc,pak,qfbsp,qfcc,qflight,qfmodelgen,qfvis,qwaq,wad,wav],dummy
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
|
2001-10-11 23:21:40 +00:00
|
|
|
unset CL_TARGETS
|
2003-02-11 22:48:57 +00:00
|
|
|
HW_TARGETS=""
|
2004-02-18 23:21:11 +00:00
|
|
|
QTV_TARGETS=""
|
2001-02-20 03:10:06 +00:00
|
|
|
QW_TARGETS=""
|
|
|
|
NQ_TARGETS=""
|
2001-06-07 03:37:05 +00:00
|
|
|
|
2001-05-17 03:48:31 +00:00
|
|
|
BUILD_GL=no
|
2001-08-25 02:47:11 +00:00
|
|
|
BUILD_SW32=no
|
2001-09-28 05:41:19 +00:00
|
|
|
BUILD_SW=no
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_GL=no
|
2001-08-25 02:47:11 +00:00
|
|
|
CAN_BUILD_SW32=no
|
2001-09-28 05:41:19 +00:00
|
|
|
CAN_BUILD_SW=no
|
|
|
|
|
|
|
|
CD_TARGETS=""
|
2003-01-31 23:16:28 +00:00
|
|
|
SND_PLUGIN_TARGETS="snd_output_disk.la"
|
2001-09-28 05:41:19 +00:00
|
|
|
SND_REND_TARGETS=""
|
|
|
|
SND_TARGETS=""
|
2001-09-28 10:31:20 +00:00
|
|
|
VID_MODEL_TARGETS=""
|
2001-09-28 05:41:19 +00:00
|
|
|
VID_REND_TARGETS=""
|
2001-10-24 17:54:56 +00:00
|
|
|
VID_REND_NOINST_TARGETS=""
|
2001-09-28 05:41:19 +00:00
|
|
|
VID_TARGETS=""
|
2001-08-01 20:17:27 +00:00
|
|
|
|
|
|
|
if test "x$HAVE_FBDEV" = xyes; then
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_fbdev" = xyes; then
|
2001-08-01 20:17:27 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-fbdev\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-fbdev\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS FBDEV"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFfbdev.la"
|
|
|
|
BUILD_SW=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sw])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-08-01 20:17:27 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_SW=yes
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
if test "x$HAVE_X" = xyes; then
|
2001-09-28 05:41:19 +00:00
|
|
|
CAN_BUILD_GL=yes
|
|
|
|
CAN_BUILD_SW=yes
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_glx" = xyes; then
|
2001-02-21 22:22:32 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-glx\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-glx\$(EXEEXT)"
|
2001-02-20 03:10:06 +00:00
|
|
|
CL_TARGETS="$CL_TARGETS GLX"
|
2001-04-15 06:04:02 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libQFglx.la"
|
2001-05-17 03:48:31 +00:00
|
|
|
BUILD_GL=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common gl x11])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_x11" = xyes; then
|
2001-09-28 05:41:19 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-x11\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-x11\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS X11"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFx11.la"
|
|
|
|
BUILD_SW=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sw x11])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-09-28 05:41:19 +00:00
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-08-01 20:17:27 +00:00
|
|
|
if test "x$HAVE_MGL" = xyes; then
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_mgl" = xyes; then
|
2001-08-01 20:17:27 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-mgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-mgl\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS MGL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFwgl.la"
|
|
|
|
BUILD_SW=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sw])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-08-01 20:17:27 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_SW=yes
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-08-01 20:17:27 +00:00
|
|
|
if test "x$HAVE_SDL" = xyes; then
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_sdl" = xyes; then
|
2001-08-01 20:17:27 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sdl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sdl\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsdl.la"
|
|
|
|
BUILD_SW=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sdl sw])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
2001-08-01 20:17:27 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_SW=yes
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_sdl32" = xyes; then
|
2001-08-25 02:47:11 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sdl32\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sdl32\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL32"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsdl32.la"
|
|
|
|
BUILD_SW32=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sdl sw32])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
2001-08-25 02:47:11 +00:00
|
|
|
fi
|
|
|
|
CAN_BUILD_SW32=yes
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_sgl" = xyes; then
|
2001-02-21 22:22:32 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sgl\$(EXEEXT)"
|
2001-02-20 03:10:06 +00:00
|
|
|
CL_TARGETS="$CL_TARGETS SDL-GL"
|
2001-04-15 06:04:02 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libQFsgl.la"
|
2001-05-17 03:48:31 +00:00
|
|
|
BUILD_GL=yes
|
2001-09-25 23:58:23 +00:00
|
|
|
CAN_BUILD_GL=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common sdl gl])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
|
|
|
fi
|
2001-08-01 20:17:27 +00:00
|
|
|
if test "x$HAVE_SVGA" = xyes; then
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_svga" = xyes; then
|
2001-08-01 20:17:27 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-svga\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-svga\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS SVGAlib"
|
2001-10-15 22:32:28 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libQFsvga.la"
|
2001-08-01 20:17:27 +00:00
|
|
|
BUILD_SW=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [asm common svga sw])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-08-01 20:17:27 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_SW=yes
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_3dfx" = xyes; then
|
2002-06-24 15:56:01 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-3dfx\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-3dfx\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS 3dfx"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFtdfx.la"
|
|
|
|
BUILD_GL=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [asm common gl svga])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-11-21 02:36:48 +00:00
|
|
|
fi
|
2002-06-24 15:56:01 +00:00
|
|
|
CAN_BUILD_GL=yes
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-08-01 20:17:27 +00:00
|
|
|
if test "x$mingw" = xyes; then
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_clients_wgl" = xyes; then
|
2001-08-01 20:17:27 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-wgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-wgl\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS WGL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFwgl.la"
|
|
|
|
BUILD_GL=yes
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_NEED(vid, [common gl])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
2001-08-01 20:17:27 +00:00
|
|
|
fi
|
2001-08-01 22:43:16 +00:00
|
|
|
CAN_BUILD_GL=yes
|
2001-04-10 20:07:11 +00:00
|
|
|
fi
|
2001-10-01 22:52:38 +00:00
|
|
|
|
2001-10-11 23:21:40 +00:00
|
|
|
unset SV_TARGETS
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_servers_nq" = xyes; then
|
2001-10-01 22:52:38 +00:00
|
|
|
NQ_TARGETS="nq-server\$(EXEEXT) $NQ_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS nq"
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(nq, [common server])
|
2001-10-01 22:52:38 +00:00
|
|
|
fi
|
2004-02-18 23:21:11 +00:00
|
|
|
if test "x$ENABLE_servers_qtv" = xyes; then
|
2004-02-19 22:18:32 +00:00
|
|
|
QTV_TARGETS="qtv\$(EXEEXT) $QTV_TARGETS"
|
2004-02-18 23:21:11 +00:00
|
|
|
SV_TARGETS="$SV_TARGETS qtv"
|
|
|
|
# QF_NEED(qtv, [common server])
|
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_servers_master" = xyes; then
|
2003-02-11 22:48:57 +00:00
|
|
|
HW_TARGETS="hw-master\$(EXEEXT) $HW_TARGETS"
|
2001-10-01 22:52:38 +00:00
|
|
|
QW_TARGETS="qw-master\$(EXEEXT) $QW_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS master"
|
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_servers_qw" = xyes; then
|
2001-10-01 22:52:38 +00:00
|
|
|
QW_TARGETS="qw-server\$(EXEEXT) $QW_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS qw"
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_NEED(qw, [common server])
|
2001-02-20 03:10:06 +00:00
|
|
|
fi
|
2001-08-01 20:17:27 +00:00
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
unset TOOLS_TARGETS
|
2002-11-18 20:48:29 +00:00
|
|
|
if test "x$ENABLE_tools_bsp2img" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS bsp2img"
|
|
|
|
fi
|
2002-11-14 02:10:55 +00:00
|
|
|
if test "x$ENABLE_tools_carne" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS carne"
|
|
|
|
fi
|
2005-05-01 11:48:36 +00:00
|
|
|
if test "x$ENABLE_tools_gsc" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS gsc"
|
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_tools_pak" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS pak"
|
|
|
|
fi
|
2002-09-19 16:58:48 +00:00
|
|
|
if test "x$ENABLE_tools_qfbsp" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qfbsp"
|
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_tools_qfcc" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qfcc"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qflight" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qflight"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfmodelgen" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qfmodelgen"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfvis" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qfvis"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qwaq" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS qwaq"
|
|
|
|
fi
|
2004-01-10 08:05:25 +00:00
|
|
|
if test "x$ENABLE_tools_wad" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS wad"
|
|
|
|
fi
|
2002-09-17 22:19:14 +00:00
|
|
|
if test "x$ENABLE_tools_wav" = xyes; then
|
|
|
|
TOOLS_TARGETS="$TOOLS_TARGETS wav"
|
|
|
|
fi
|
2002-11-14 02:10:55 +00:00
|
|
|
|
2002-11-18 20:48:29 +00:00
|
|
|
AM_CONDITIONAL(BUILD_BSP2IMG, test "$ENABLE_tools_bsp2img" = "yes")
|
2002-11-14 02:10:55 +00:00
|
|
|
AM_CONDITIONAL(BUILD_CARNE, test "$ENABLE_tools_carne" = "yes")
|
2005-05-01 11:48:36 +00:00
|
|
|
AM_CONDITIONAL(BUILD_GSC, test "$ENABLE_tools_gsc" = "yes")
|
2002-09-17 22:19:14 +00:00
|
|
|
AM_CONDITIONAL(BUILD_PAK, test "$ENABLE_tools_pak" = "yes")
|
2002-09-19 16:58:48 +00:00
|
|
|
AM_CONDITIONAL(BUILD_QFBSP, test "$ENABLE_tools_qfbsp" = "yes")
|
2002-09-17 22:19:14 +00:00
|
|
|
AM_CONDITIONAL(BUILD_QFCC, test "$ENABLE_tools_qfcc" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_QFLIGHT, test "$ENABLE_tools_qflight" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_QFMODELGEN, test "$ENABLE_tools_qfmodelgen" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_QFVIS, test "$ENABLE_tools_qfvis" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_QWAQ, test "$ENABLE_tools_qwaq" = "yes" -a "$ENABLE_tools_qfcc" = "yes")
|
2004-01-10 08:05:25 +00:00
|
|
|
AM_CONDITIONAL(BUILD_WAD, test "$ENABLE_tools_wad" = "yes")
|
2002-09-17 22:19:14 +00:00
|
|
|
AM_CONDITIONAL(BUILD_WAV, test "$ENABLE_tools_wav" = "yes")
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RUAMOKO, test "$ENABLE_tools_qfcc" = "yes" -a "$ENABLE_tools_pak" = "yes")
|
|
|
|
|
2001-09-28 05:41:19 +00:00
|
|
|
if test "x$BUILD_SW" = xyes; then
|
2001-10-24 17:54:56 +00:00
|
|
|
VID_REND_NOINST_TARGETS="$VID_REND_NOINST_TARGETS libQFrenderer_sw.la"
|
2001-09-28 10:31:20 +00:00
|
|
|
VID_MODEL_TARGETS="$VID_MODEL_TARGETS libQFmodels_sw.la"
|
2001-09-28 05:41:19 +00:00
|
|
|
fi
|
|
|
|
if test "x$BUILD_SW32" = xyes; then
|
|
|
|
VID_REND_TARGETS="$VID_REND_TARGETS libQFrenderer_sw32.la"
|
2001-11-21 19:13:53 +00:00
|
|
|
if test "x$BUILD_SW" != xyes; then
|
|
|
|
VID_MODEL_TARGETS="$VID_MODEL_TARGETS libQFmodels_sw.la"
|
|
|
|
fi
|
2001-09-28 05:41:19 +00:00
|
|
|
fi
|
|
|
|
if test "x$BUILD_GL" = xyes; then
|
|
|
|
VID_REND_TARGETS="$VID_REND_TARGETS libQFrenderer_gl.la"
|
2001-09-28 10:31:20 +00:00
|
|
|
VID_MODEL_TARGETS="$VID_MODEL_TARGETS libQFmodels_gl.la"
|
2001-09-28 05:41:19 +00:00
|
|
|
fi
|
|
|
|
|
2002-08-07 18:20:23 +00:00
|
|
|
QF_PROCESS_NEED(vid, [asm common gl sdl sw sw32 svga x11])
|
2003-02-12 15:38:39 +00:00
|
|
|
QF_PROCESS_NEED(qw, [client common sdl server], a)
|
|
|
|
QF_PROCESS_NEED(nq, [client common sdl server], a)
|
2002-08-07 18:20:23 +00:00
|
|
|
|
2001-08-01 22:43:16 +00:00
|
|
|
AC_SUBST(CAN_BUILD_GL)
|
|
|
|
AC_SUBST(CAN_BUILD_SW)
|
2001-08-25 02:47:11 +00:00
|
|
|
AC_SUBST(CAN_BUILD_SW32)
|
2001-08-01 22:43:16 +00:00
|
|
|
|
2001-08-01 20:17:27 +00:00
|
|
|
AC_SUBST(HAVE_FBDEV)
|
|
|
|
AC_SUBST(HAVE_SDL)
|
|
|
|
AC_SUBST(HAVE_SVGA)
|
|
|
|
AC_SUBST(HAVE_X)
|
|
|
|
|
2004-01-20 08:26:16 +00:00
|
|
|
ALSA_PLUGIN="snd_output_alsa"
|
|
|
|
if test "`echo $SOUND_TYPES | grep ALSA0_9`"; then
|
|
|
|
ALSA_PLUGIN="snd_output_alsa0_9"
|
|
|
|
fi
|
|
|
|
|
2001-06-07 03:37:05 +00:00
|
|
|
if test -n "$CL_TARGETS"; then
|
2001-04-18 18:04:22 +00:00
|
|
|
CD_TARGETS="libQFcd.la"
|
|
|
|
SND_TARGETS="libQFsound.la"
|
2001-10-16 05:06:31 +00:00
|
|
|
JOY_TARGETS="libQFjs.la"
|
2004-01-20 08:26:16 +00:00
|
|
|
# the following will catch both ALSA and ALSA0_9
|
|
|
|
if test "`echo $SOUND_TYPES | grep ALSA`"; then
|
2004-01-20 05:43:23 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS $ALSA_PLUGIN.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep MME`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_mme.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep OSS`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_oss.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep SDL`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_sdl.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep SGI`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_sgi.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep SUN`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_sun.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
|
|
|
if test "`echo $SOUND_TYPES | grep Win32`"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_win.la"
|
2001-08-23 04:01:46 +00:00
|
|
|
fi
|
2003-03-10 21:21:22 +00:00
|
|
|
if test "`echo $SOUND_TYPES | grep DirectX`"; then
|
|
|
|
SND_PLUGIN_TARGETS="$SND_PLUGIN_TARGETS snd_output_dx.la"
|
|
|
|
fi
|
2001-08-23 04:01:46 +00:00
|
|
|
if test "$SOUND_TYPES"; then
|
2002-08-01 19:49:10 +00:00
|
|
|
SND_REND_TARGETS="$SND_REND_TARGETS snd_render_default.la"
|
2001-05-19 00:05:35 +00:00
|
|
|
fi
|
2001-06-07 01:28:27 +00:00
|
|
|
else
|
2001-10-11 23:21:40 +00:00
|
|
|
unset CDTYPE
|
2001-06-07 03:37:05 +00:00
|
|
|
CD_PLUGIN_TARGETS=""
|
2001-09-28 05:41:19 +00:00
|
|
|
CD_TARGETS=""
|
2001-10-16 05:06:31 +00:00
|
|
|
JOY_TARGETS=""
|
2001-06-07 03:37:05 +00:00
|
|
|
SND_PLUGIN_TARGETS=""
|
2001-09-28 05:41:19 +00:00
|
|
|
SND_REND_TARGETS=""
|
|
|
|
SND_TARGETS=""
|
2001-10-11 23:21:40 +00:00
|
|
|
unset SOUND_TYPES
|
2001-04-18 18:04:22 +00:00
|
|
|
fi
|
2004-01-20 05:43:23 +00:00
|
|
|
AC_SUBST(ALSA_PLUGIN)
|
2001-10-01 22:52:38 +00:00
|
|
|
|
2002-08-01 19:49:10 +00:00
|
|
|
SERVER_PLUGIN_TARGETS="console_server.la"
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_STATIC=""
|
2002-08-01 19:49:10 +00:00
|
|
|
CLIENT_PLUGIN_TARGETS="console_client.la"
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_STATIC=""
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_STATIC=""
|
|
|
|
SND_PLUGIN_STATIC=""
|
|
|
|
SND_REND_STATIC=""
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$enable_shared" = xno; then
|
2002-08-01 19:49:10 +00:00
|
|
|
PREFER_PIC=
|
|
|
|
PREFER_NON_PIC=
|
|
|
|
else
|
|
|
|
PREFER_PIC=-prefer-pic
|
|
|
|
PREFER_NON_PIC=-prefer-non-pic
|
|
|
|
fi
|
2003-12-22 20:51:08 +00:00
|
|
|
if test "x$enable_static" = xno; then
|
|
|
|
STATIC=
|
|
|
|
else
|
|
|
|
STATIC=-static
|
|
|
|
fi
|
2002-08-01 19:49:10 +00:00
|
|
|
AC_SUBST(PREFER_PIC)
|
|
|
|
AC_SUBST(PREFER_NON_PIC)
|
2003-12-22 20:51:08 +00:00
|
|
|
AC_SUBST(STATIC)
|
2002-08-01 19:49:10 +00:00
|
|
|
|
2001-10-10 05:52:14 +00:00
|
|
|
AC_ARG_WITH(static-plugins,
|
|
|
|
[ --with-static-plugins build plugins into executable rather than separate],
|
|
|
|
static_plugins="$withval", static_plugins=auto)
|
2002-08-01 19:49:10 +00:00
|
|
|
if test "x$static_plugins" = xauto; then
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$enable_shared" = xno -o "x$SYSTYPE" = xWIN32; then
|
2002-08-01 19:49:10 +00:00
|
|
|
static_plugins=yes
|
|
|
|
fi
|
2001-10-10 05:52:14 +00:00
|
|
|
fi
|
|
|
|
if test "x$static_plugins" = xyes; then
|
2002-04-19 20:08:54 +00:00
|
|
|
AC_DEFINE(STATIC_PLUGINS, 1, [Define this if you are building static plugins])
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_STATIC="$SERVER_PLUGIN_TARGETS"
|
|
|
|
SERVER_PLUGIN_TARGETS=""
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_STATIC="$CLIENT_PLUGIN_TARGETS"
|
|
|
|
CLIENT_PLUGIN_TARGETS=""
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_STATIC="$CD_PLUGIN_TARGETS"
|
|
|
|
CD_PLUGIN_TARGETS=""
|
|
|
|
SND_PLUGIN_STATIC="$SND_PLUGIN_TARGETS"
|
|
|
|
SND_PLUGIN_TARGETS=""
|
|
|
|
SND_REND_STATIC="$SND_REND_TARGETS"
|
|
|
|
SND_REND_TARGETS=""
|
|
|
|
if test -n "$SOUND_TYPES"; then
|
|
|
|
SOUND_TYPES="$SOUND_TYPES (static)"
|
|
|
|
CDTYPE="$CDTYPE (static)"
|
|
|
|
fi
|
2002-08-01 19:49:10 +00:00
|
|
|
plugin_ldflags="$plugin_ldflags"
|
2002-06-03 16:34:46 +00:00
|
|
|
else
|
|
|
|
plugin_ldflags="$plugin_ldflags"' -version-info $(plugin_version) -rpath $(plugindir)'
|
2001-10-10 05:52:14 +00:00
|
|
|
fi
|
2004-11-18 06:08:00 +00:00
|
|
|
|
|
|
|
dnl Don't use -module here, it belongs in makefile.am due to automake
|
|
|
|
dnl needing it there to work correctly
|
|
|
|
plugin_ldflags="$plugin_ldflags -avoid-version"
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_STATIC_LIBS=""
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_STATIC_LIBS=""
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_STATIC_LIBS=""
|
|
|
|
SND_PLUGIN_STATIC_LIBS=""
|
|
|
|
SND_REND_STATIC_LIBS=""
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_LIST="{0, 0}"
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_LIST="{0, 0}"
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_LIST="{0, 0}"
|
|
|
|
SND_OUTPUT_LIST="{0, 0}"
|
|
|
|
SND_RENDER_LIST="{0, 0}"
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_PROTOS=""
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_PROTOS=""
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_PROTOS=""
|
|
|
|
SND_OUTPUT_PROTOS=""
|
|
|
|
SND_RENDER_PROTOS=""
|
2001-12-02 20:11:21 +00:00
|
|
|
for l in $SERVER_PLUGIN_STATIC; do
|
|
|
|
SERVER_PLUGIN_STATIC_LIBS="$SERVER_PLUGIN_STATIC_LIBS "'$(top_builddir)'"/libs/console/$l"
|
2002-08-01 19:49:10 +00:00
|
|
|
n="`echo $l | sed -e 's/\(.*\)\.la/\1/'`"
|
2001-12-02 20:11:21 +00:00
|
|
|
SERVER_PLUGIN_LIST='{"'"$n"'"'", ${n}_PluginInfo},$SERVER_PLUGIN_LIST"
|
2004-01-19 07:47:41 +00:00
|
|
|
SERVER_PLUGIN_PROTOS="$SERVER_PLUGIN_PROTOS extern plugin_t *${n}_PluginInfo (void);"
|
2001-12-02 20:11:21 +00:00
|
|
|
done
|
2002-01-16 16:27:56 +00:00
|
|
|
for l in $CLIENT_PLUGIN_STATIC; do
|
|
|
|
CLIENT_PLUGIN_STATIC_LIBS="$CLIENT_PLUGIN_STATIC_LIBS "'$(top_builddir)'"/libs/console/$l"
|
2002-08-01 19:49:10 +00:00
|
|
|
n="`echo $l | sed -e 's/\(.*\)\.la/\1/'`"
|
2002-01-16 16:27:56 +00:00
|
|
|
CLIENT_PLUGIN_LIST='{"'"$n"'"'", ${n}_PluginInfo},$CLIENT_PLUGIN_LIST"
|
2004-01-19 07:47:41 +00:00
|
|
|
CLIENT_PLUGIN_PROTOS="$CLIENT_PLUGIN_PROTOS extern plugin_t *${n}_PluginInfo (void);"
|
2002-01-16 16:27:56 +00:00
|
|
|
done
|
2001-10-10 05:52:14 +00:00
|
|
|
for l in $CD_PLUGIN_STATIC; do
|
|
|
|
CD_PLUGIN_STATIC_LIBS="$CD_PLUGIN_STATIC_LIBS cd/$l"
|
2002-08-01 19:49:10 +00:00
|
|
|
n="`echo $l | sed -e 's/\(.*\)\.la/\1/'`"
|
2001-10-10 05:52:14 +00:00
|
|
|
CD_PLUGIN_LIST='{"'"$n"'"'", ${n}_PluginInfo},$CD_PLUGIN_LIST"
|
2004-01-19 07:47:41 +00:00
|
|
|
CD_PLUGIN_PROTOS="$CD_PLUGIN_PROTOS extern plugin_t *${n}_PluginInfo (void);"
|
2001-10-10 05:52:14 +00:00
|
|
|
done
|
|
|
|
for l in $SND_PLUGIN_STATIC; do
|
|
|
|
SND_PLUGIN_STATIC_LIBS="$SND_PLUGIN_STATIC_LIBS targets/$l"
|
2002-08-01 19:49:10 +00:00
|
|
|
n="`echo $l | sed -e 's/\(.*\)\.la/\1/'`"
|
2001-10-10 05:52:14 +00:00
|
|
|
SND_OUTPUT_LIST='{"'"$n"'"'", ${n}_PluginInfo},$SND_OUTPUT_LIST"
|
2004-01-19 07:47:41 +00:00
|
|
|
SND_OUTPUT_PROTOS="$SND_OUTPUT_PROTOS extern plugin_t *${n}_PluginInfo (void);"
|
2001-10-10 05:52:14 +00:00
|
|
|
done
|
|
|
|
for l in $SND_REND_STATIC; do
|
|
|
|
SND_REND_STATIC_LIBS="$SND_REND_STATIC_LIBS renderer/$l"
|
2002-08-01 19:49:10 +00:00
|
|
|
n="`echo $l | sed -e 's/\(.*\)\.la/\1/'`"
|
2001-10-10 05:52:14 +00:00
|
|
|
SND_RENDER_LIST='{"'"$n"'"'", ${n}_PluginInfo},$SND_RENDER_LIST"
|
2004-01-19 07:47:41 +00:00
|
|
|
SND_RENDER_PROTOS="$SND_RENDER_PROTOS extern plugin_t *${n}_PluginInfo (void);"
|
2001-10-10 05:52:14 +00:00
|
|
|
done
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(SERVER_PLUGIN_LIST, $SERVER_PLUGIN_LIST, [list of server plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(SERVER_PLUGIN_PROTOS, $SERVER_PLUGIN_PROTOS, [list of server prototypes])
|
|
|
|
AC_DEFINE_UNQUOTED(CLIENT_PLUGIN_LIST, $CLIENT_PLUGIN_LIST, [list of client plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(CLIENT_PLUGIN_PROTOS, $CLIENT_PLUGIN_PROTOS, [list of client prototypes])
|
|
|
|
AC_DEFINE_UNQUOTED(CD_PLUGIN_LIST, $CD_PLUGIN_LIST, [list of cd plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(CD_PLUGIN_PROTOS, $CD_PLUGIN_PROTOS, [list of cd prototypes])
|
|
|
|
AC_DEFINE_UNQUOTED(SND_OUTPUT_LIST, $SND_OUTPUT_LIST, [list of sound output plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(SND_OUTPUT_PROTOS, $SND_OUTPUT_PROTOS, [list of sound output prototypes])
|
|
|
|
AC_DEFINE_UNQUOTED(SND_RENDER_LIST, $SND_RENDER_LIST, [list of sound render plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(SND_RENDER_PROTOS, $SND_RENDER_PROTOS, [list of sound render prototypes])
|
2001-10-10 05:52:14 +00:00
|
|
|
|
2003-02-11 22:48:57 +00:00
|
|
|
AC_SUBST(HW_TARGETS)
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_SUBST(NQ_TARGETS)
|
2004-02-18 23:21:11 +00:00
|
|
|
AC_SUBST(QTV_TARGETS)
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_SUBST(QW_TARGETS)
|
2001-12-02 20:11:21 +00:00
|
|
|
AC_SUBST(SERVER_PLUGIN_STATIC)
|
|
|
|
AC_SUBST(SERVER_PLUGIN_STATIC_LIBS)
|
|
|
|
AC_SUBST(SERVER_PLUGIN_TARGETS)
|
2002-01-16 16:27:56 +00:00
|
|
|
AC_SUBST(CLIENT_PLUGIN_STATIC)
|
|
|
|
AC_SUBST(CLIENT_PLUGIN_STATIC_LIBS)
|
|
|
|
AC_SUBST(CLIENT_PLUGIN_TARGETS)
|
2001-10-10 05:52:14 +00:00
|
|
|
AC_SUBST(CD_PLUGIN_STATIC)
|
|
|
|
AC_SUBST(CD_PLUGIN_STATIC_LIBS)
|
2001-10-16 05:06:31 +00:00
|
|
|
AC_SUBST(CD_PLUGIN_TARGETS)
|
2001-09-28 05:41:19 +00:00
|
|
|
AC_SUBST(CD_TARGETS)
|
2001-10-16 05:06:31 +00:00
|
|
|
AC_SUBST(JOY_TARGETS)
|
2001-10-10 05:52:14 +00:00
|
|
|
AC_SUBST(SND_PLUGIN_STATIC)
|
|
|
|
AC_SUBST(SND_PLUGIN_STATIC_LIBS)
|
2001-10-16 05:06:31 +00:00
|
|
|
AC_SUBST(SND_PLUGIN_TARGETS)
|
2001-10-10 05:52:14 +00:00
|
|
|
AC_SUBST(SND_REND_STATIC)
|
|
|
|
AC_SUBST(SND_REND_STATIC_LIBS)
|
2001-10-16 05:06:31 +00:00
|
|
|
AC_SUBST(SND_REND_TARGETS)
|
2001-09-28 05:41:19 +00:00
|
|
|
AC_SUBST(SND_TARGETS)
|
2001-09-28 10:31:20 +00:00
|
|
|
AC_SUBST(VID_MODEL_TARGETS)
|
2001-09-28 05:41:19 +00:00
|
|
|
AC_SUBST(VID_REND_TARGETS)
|
2001-10-24 17:54:56 +00:00
|
|
|
AC_SUBST(VID_REND_NOINST_TARGETS)
|
2001-04-15 06:29:57 +00:00
|
|
|
AC_SUBST(VID_TARGETS)
|
2002-06-03 16:34:46 +00:00
|
|
|
AC_SUBST(plugin_ldflags)
|
|
|
|
AC_SUBST(plugin_libadd)
|
2001-02-20 03:10:06 +00:00
|
|
|
|
2002-11-18 20:48:29 +00:00
|
|
|
QF_DEPS(BSP2IMG,
|
2004-04-06 03:30:09 +00:00
|
|
|
[],
|
2003-08-15 16:19:10 +00:00
|
|
|
[$(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
2002-11-18 20:48:29 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-09-19 16:58:48 +00:00
|
|
|
QF_DEPS(QFBSP,
|
|
|
|
[-I$(top_srcdir)/tools/qfbsp/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-02 19:03:16 +00:00
|
|
|
QF_DEPS(QFCC,
|
|
|
|
[-I$(top_srcdir)/tools/qfcc/include],
|
|
|
|
[$(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-25 23:10:57 +00:00
|
|
|
QF_DEPS(QFLIGHT,
|
|
|
|
[-I$(top_srcdir)/tools/qflight/include],
|
2002-08-26 23:08:34 +00:00
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
2002-08-25 23:10:57 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-09-11 20:22:17 +00:00
|
|
|
QF_DEPS(QFMODELGEN,
|
|
|
|
[-I$(top_srcdir)/tools/qfmodelgen/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-25 23:10:57 +00:00
|
|
|
QF_DEPS(QFVIS,
|
|
|
|
[-I$(top_srcdir)/tools/qfvis/include],
|
2002-08-26 23:08:34 +00:00
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
2002-08-25 23:10:57 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-02 19:03:16 +00:00
|
|
|
QF_DEPS(QWAQ,
|
|
|
|
[],
|
2005-05-01 11:48:36 +00:00
|
|
|
[$(top_builddir)/libs/ruamoko/libQFruamoko.la $(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la $(top_builddir)/libs/gamecode/builtins/libQFgamecode_builtins.la],
|
2002-08-02 19:03:16 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-11-14 02:10:55 +00:00
|
|
|
QF_DEPS(CARNE,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/gib/libQFgib.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2005-05-01 11:48:36 +00:00
|
|
|
QF_DEPS(GSC,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/gibscript/libQFgibscript.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-02 19:03:16 +00:00
|
|
|
QF_DEPS(PAK,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2004-01-10 08:05:25 +00:00
|
|
|
QF_DEPS(WAD,
|
|
|
|
[],
|
2004-05-10 00:33:48 +00:00
|
|
|
[$(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
2004-01-10 08:05:25 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-08-02 19:03:16 +00:00
|
|
|
QF_DEPS(WAV,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2002-07-22 16:17:58 +00:00
|
|
|
|
2002-03-14 20:49:16 +00:00
|
|
|
AC_DEFINE_UNQUOTED(PATH_SEPARATOR, '/', [Define this to your operating system's path separator character])
|
|
|
|
AC_DEFINE_UNQUOTED(CPP_NAME, "$CPP_NAME", [Define this to the command line for the C preprocessor])
|
2002-11-01 18:05:12 +00:00
|
|
|
AC_DEFINE_UNQUOTED(QFCC_INCLUDE_PATH, "$prefix/include/QF/ruamoko", [Define this to where qfcc should look for header files])
|
|
|
|
AC_DEFINE_UNQUOTED(QFCC_LIB_PATH, "$prefix/lib/ruamoko", [Define this to where qfcc should look for lib files])
|
2002-01-22 05:48:03 +00:00
|
|
|
|
2001-05-17 03:48:31 +00:00
|
|
|
AM_CONDITIONAL(BUILD_GL, test "$BUILD_GL" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_SW, test "$BUILD_SW" = "yes")
|
2001-10-02 22:36:08 +00:00
|
|
|
AM_CONDITIONAL(BUILD_SW_ASM, test "$BUILD_SW" = "yes" -a "$ASM_ARCH" = "yes")
|
2001-11-21 19:13:53 +00:00
|
|
|
AM_CONDITIONAL(BUILD_SW_MOD, test "$BUILD_SW" = "yes" -o "$BUILD_SW32" = "yes")
|
2001-08-25 02:47:11 +00:00
|
|
|
AM_CONDITIONAL(BUILD_SW32, test "$BUILD_SW32" = "yes")
|
2001-05-17 03:48:31 +00:00
|
|
|
|
2001-09-25 23:58:23 +00:00
|
|
|
dnl Finalization of CFLAGS, LDFLAGS, and LIBS
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
AC_SUBST(LIBS)
|
|
|
|
|
2001-09-28 16:03:45 +00:00
|
|
|
AC_SUBST(AS)
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_SUBST(RANLIB)
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
dnl Output files
|
|
|
|
AC_OUTPUT(
|
2001-04-11 03:09:24 +00:00
|
|
|
Makefile
|
2001-10-11 05:10:46 +00:00
|
|
|
quakeforge.lsm
|
2001-04-11 03:09:24 +00:00
|
|
|
|
2001-02-20 03:51:04 +00:00
|
|
|
include/Makefile
|
2001-03-29 20:42:08 +00:00
|
|
|
include/QF/Makefile
|
2001-04-11 03:09:24 +00:00
|
|
|
|
2001-02-21 19:35:06 +00:00
|
|
|
libs/Makefile
|
2001-04-09 21:15:09 +00:00
|
|
|
libs/audio/Makefile
|
|
|
|
libs/audio/cd/Makefile
|
2001-04-10 09:40:09 +00:00
|
|
|
libs/audio/targets/Makefile
|
2001-08-23 04:01:46 +00:00
|
|
|
libs/audio/renderer/Makefile
|
2001-07-16 20:41:10 +00:00
|
|
|
libs/console/Makefile
|
2001-02-27 23:02:17 +00:00
|
|
|
libs/gamecode/Makefile
|
2001-08-21 21:05:26 +00:00
|
|
|
libs/gamecode/engine/Makefile
|
2001-08-21 22:34:20 +00:00
|
|
|
libs/gamecode/builtins/Makefile
|
2003-08-15 16:19:10 +00:00
|
|
|
libs/gib/Makefile
|
|
|
|
libs/image/Makefile
|
2001-05-10 06:01:11 +00:00
|
|
|
libs/models/Makefile
|
|
|
|
libs/models/alias/Makefile
|
|
|
|
libs/models/brush/Makefile
|
|
|
|
libs/models/sprite/Makefile
|
2003-02-11 22:48:57 +00:00
|
|
|
libs/net/Makefile
|
|
|
|
libs/net/nc/Makefile
|
|
|
|
libs/net/nm/Makefile
|
2004-02-21 05:09:02 +00:00
|
|
|
libs/qw/Makefile
|
2004-01-16 05:46:19 +00:00
|
|
|
libs/ruamoko/Makefile
|
2001-02-21 19:35:06 +00:00
|
|
|
libs/util/Makefile
|
2001-04-11 07:57:08 +00:00
|
|
|
libs/video/Makefile
|
2001-05-24 19:22:35 +00:00
|
|
|
libs/video/renderer/Makefile
|
|
|
|
libs/video/renderer/gl/Makefile
|
|
|
|
libs/video/renderer/sw/Makefile
|
2001-08-25 02:47:11 +00:00
|
|
|
libs/video/renderer/sw32/Makefile
|
2001-04-11 07:57:08 +00:00
|
|
|
libs/video/targets/Makefile
|
2001-04-11 03:09:24 +00:00
|
|
|
|
2003-02-11 22:48:57 +00:00
|
|
|
hw/Makefile
|
|
|
|
hw/include/Makefile
|
|
|
|
hw/source/Makefile
|
|
|
|
|
2001-04-11 03:09:24 +00:00
|
|
|
nq/Makefile
|
2001-02-20 03:10:06 +00:00
|
|
|
nq/include/Makefile
|
|
|
|
nq/source/Makefile
|
2001-04-11 03:09:24 +00:00
|
|
|
|
2004-02-18 23:21:11 +00:00
|
|
|
qtv/Makefile
|
|
|
|
qtv/include/Makefile
|
|
|
|
qtv/source/Makefile
|
|
|
|
|
2002-07-22 16:17:58 +00:00
|
|
|
qw/Makefile
|
|
|
|
qw/include/Makefile
|
|
|
|
qw/source/Makefile
|
|
|
|
|
2002-01-22 05:48:03 +00:00
|
|
|
tools/Makefile
|
2002-11-18 20:48:29 +00:00
|
|
|
tools/bsp2img/Makefile
|
2002-11-14 02:10:55 +00:00
|
|
|
tools/carne/Makefile
|
2002-03-18 22:01:51 +00:00
|
|
|
tools/pak/Makefile
|
2002-09-19 16:58:48 +00:00
|
|
|
tools/qfbsp/Makefile
|
|
|
|
tools/qfbsp/include/Makefile
|
|
|
|
tools/qfbsp/source/Makefile
|
2002-01-22 05:48:03 +00:00
|
|
|
tools/qfcc/Makefile
|
|
|
|
tools/qfcc/doc/Makefile
|
|
|
|
tools/qfcc/doc/man/Makefile
|
|
|
|
tools/qfcc/include/Makefile
|
|
|
|
tools/qfcc/source/Makefile
|
2002-08-25 23:10:57 +00:00
|
|
|
tools/qflight/Makefile
|
|
|
|
tools/qflight/include/Makefile
|
|
|
|
tools/qflight/source/Makefile
|
2002-09-11 20:22:17 +00:00
|
|
|
tools/qfmodelgen/Makefile
|
|
|
|
tools/qfmodelgen/include/Makefile
|
|
|
|
tools/qfmodelgen/source/Makefile
|
2002-08-25 23:10:57 +00:00
|
|
|
tools/qfvis/Makefile
|
|
|
|
tools/qfvis/include/Makefile
|
|
|
|
tools/qfvis/source/Makefile
|
2002-05-31 06:55:35 +00:00
|
|
|
tools/qwaq/Makefile
|
|
|
|
tools/qwaq/progs.src
|
2004-01-10 08:05:25 +00:00
|
|
|
tools/wad/Makefile
|
2002-07-22 16:17:58 +00:00
|
|
|
tools/wav/Makefile
|
2002-01-22 05:48:03 +00:00
|
|
|
|
2002-08-15 19:08:44 +00:00
|
|
|
ruamoko/Makefile
|
|
|
|
ruamoko/include/Makefile
|
|
|
|
ruamoko/lib/Makefile
|
|
|
|
ruamoko/game/Makefile
|
2004-02-03 08:31:26 +00:00
|
|
|
ruamoko/gui/Makefile
|
2002-08-16 21:58:48 +00:00
|
|
|
ruamoko/cl_menu/Makefile
|
2005-05-01 11:48:36 +00:00
|
|
|
ruamoko/scheme/Makefile
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2001-04-11 03:09:24 +00:00
|
|
|
doc/Makefile
|
2003-03-10 23:42:27 +00:00
|
|
|
doc/quakeforge.dox
|
2001-04-11 03:09:24 +00:00
|
|
|
doc/man/Makefile
|
|
|
|
|
|
|
|
debian/Makefile
|
|
|
|
|
2001-08-02 02:49:33 +00:00
|
|
|
RPM/Makefile
|
2001-08-01 18:19:36 +00:00
|
|
|
RPM/build_rpm
|
2001-08-01 22:43:16 +00:00
|
|
|
RPM/quakeforge.conf
|
2001-08-01 18:19:36 +00:00
|
|
|
RPM/quakeforge.spec,
|
2001-04-11 03:09:24 +00:00
|
|
|
|
2002-09-30 18:19:38 +00:00
|
|
|
chmod +x RPM/build_rpm
|
2001-10-01 22:52:38 +00:00
|
|
|
if test -n "$AR" -a "$AR" != "ar"; then
|
2001-10-01 20:49:38 +00:00
|
|
|
sed -e 's/^AR="ar"$/AR="'$AR'"/' libtool > libtool.qf
|
|
|
|
if cmp -s libtool.qf libtool; then
|
|
|
|
echo libtool is unchanged
|
|
|
|
rm -f libtool.qf
|
|
|
|
else
|
|
|
|
rm -f libtool
|
|
|
|
mv libtool.qf libtool
|
|
|
|
fi
|
|
|
|
fi
|
2001-02-20 03:10:06 +00:00
|
|
|
)
|
|
|
|
|
2001-06-18 01:06:50 +00:00
|
|
|
if test "x$CCVER" = "x"; then
|
|
|
|
CCVER=$CC
|
|
|
|
else
|
2003-08-06 18:20:48 +00:00
|
|
|
if test "x$CCVER" = "xgcc 2.96"; then
|
2001-06-18 01:06:50 +00:00
|
|
|
CCVER="$CCVER
|
|
|
|
(Note: You might need CC=kgcc ./configure on some systems)"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
AC_MSG_RESULT([
|
|
|
|
QuakeForge has been configured successfully.
|
|
|
|
|
2001-10-11 23:21:40 +00:00
|
|
|
Build type :$BUILD_TYPE
|
|
|
|
Server support :${SV_TARGETS- no}
|
|
|
|
Client support :${CL_TARGETS- no}
|
2002-09-17 22:19:14 +00:00
|
|
|
Tools support :${TOOLS_TARGETS- no}
|
2001-10-11 23:21:40 +00:00
|
|
|
Sound support :${SOUND_TYPES- no}
|
|
|
|
CD Audio system :${CDTYPE- no}
|
|
|
|
IPv6 networking : $NETTYPE_IPV6
|
2003-09-08 14:32:54 +00:00
|
|
|
Compression support: gz=$HAVE_ZLIB ogg=$HAVE_VORBIS png=$HAVE_PNG
|
2001-10-11 23:21:40 +00:00
|
|
|
Compiler version : $CCVER
|
2001-11-20 04:50:21 +00:00
|
|
|
Compiler flags : $CFLAGS
|
2002-02-05 18:40:47 +00:00
|
|
|
qfcc cpp invocation: $CPP_NAME
|
2001-06-18 01:06:50 +00:00
|
|
|
|
2002-02-22 08:55:24 +00:00
|
|
|
Shared game data directory : $sharepath
|
2001-02-20 03:10:06 +00:00
|
|
|
Per-user game data directory: $userpath
|
2002-02-22 08:55:24 +00:00
|
|
|
Plugin load directory : $expanded_plugindir
|
|
|
|
Global configuration file : $globalconf
|
|
|
|
User configuration file : $userconf
|
|
|
|
OpenGL dynamic lib : $gl_driver
|
2003-09-10 05:20:51 +00:00
|
|
|
libWildMidi Support : $HAVE_WILDMIDI
|
2001-02-20 03:10:06 +00:00
|
|
|
])
|
2001-06-18 01:06:50 +00:00
|
|
|
|
2001-02-20 03:10:06 +00:00
|
|
|
if test -d $srcdir/CVS; then
|
|
|
|
echo "WARNING: Hackers at work, watch for falling bits of code."
|
|
|
|
echo "(This is from a development CVS tree. Expect problems)"
|
|
|
|
echo
|
|
|
|
fi
|