mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
669771681a
Most of the guts of configure.ac have been moved to config.d and are then brought in by m4_include. This will make maintaining configure.ac much easier. Also drop use of PROGRAM and VERSION, using PACKAGE_NAME, PACKAGE_VERSION, and on occasion, PACKAGE_STRING instead, and clean out some old files we no longer need.
83 lines
1.6 KiB
Text
83 lines
1.6 KiB
Text
dnl ==================================================================
|
|
dnl Checks for CD-ROM
|
|
dnl ==================================================================
|
|
|
|
dnl XMMS Checks
|
|
AC_ARG_ENABLE(xmms,
|
|
[ --disable-xmms disable checking for XMMS],
|
|
)
|
|
if test "x$mingw" != xyes -a "x$enable_xmms" != xno; then
|
|
AM_PATH_XMMS(0.9.5.1,
|
|
HAVE_XMMS=yes,
|
|
HAVE_XMMS=no)
|
|
AC_SUBST(HAVE_XMMS)
|
|
fi
|
|
AC_SUBST(CD_CFLAGS)
|
|
|
|
CD_CFLAGS=""
|
|
if test "x$HAVE_VORBIS" = xyes; then
|
|
CD_PLUGIN_TARGETS="cd_file.la"
|
|
else
|
|
CD_PLUGIN_TARGETS=""
|
|
fi
|
|
unset CDTYPE
|
|
|
|
AC_MSG_CHECKING(for CD audio support)
|
|
|
|
dnl Linux
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
[
|
|
#include <linux/cdrom.h>
|
|
#ifdef CDROMREADTOCENTRY
|
|
QF_maGiC_VALUE
|
|
#endif
|
|
],
|
|
CDTYPE="$CDTYPE Linux"
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_linux.la"
|
|
)
|
|
|
|
dnl XMMS audio
|
|
if test "x$HAVE_XMMS" = "xyes"; then
|
|
CDTYPE="$CDTYPE XMMS"
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_xmms.la"
|
|
AC_DEFINE(HAVE_XMMS, [1], [Define if you have XMMS])
|
|
fi
|
|
|
|
dnl SDL CD audio
|
|
if test "x$HAVE_SDL_CD" = "xyes"; then
|
|
CDTYPE="$CDTYPE SDL"
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_sdl.la"
|
|
fi
|
|
|
|
dnl SGI
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
[
|
|
#include <dmedia/cdaudio.h>
|
|
#ifdef CD_READY
|
|
QF_maGiC_VALUE
|
|
#endif
|
|
],
|
|
CDTYPE="$CDTYPE SGI"
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_sgi.la"
|
|
SGI_CD_LIBS="-lcdaudio -lmediad -lds"
|
|
)
|
|
AC_SUBST(SGI_CD_LIBS)
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
[
|
|
#include <windows.h>
|
|
#include <mmsystem.h>
|
|
#if defined(MCI_SET_DOOR_OPEN)
|
|
QF_maGiC_VALUE
|
|
#endif
|
|
],
|
|
CDTYPE="$CDTYPE WIN32"
|
|
CD_PLUGIN_TARGETS="$CD_PLUGIN_TARGETS cd_win.la"
|
|
)
|
|
if test "$CDTYPE"; then
|
|
AC_MSG_RESULT([$CDTYPE])
|
|
else
|
|
AC_MSG_RESULT([no])
|
|
fi
|
|
|
|
AC_SUBST(CD_LIBS)
|