Detect Linux and BSD CD-ROM APIs.

This commit is contained in:
Marcus Sundberg 2000-01-06 02:31:32 +00:00
parent b28fa0a244
commit 8e9d7f6b4b
2 changed files with 24 additions and 0 deletions

View file

@ -16,6 +16,12 @@
/* Define this if C symbols are prefixed with an underscore */
#undef HAVE_SYM_PREFIX_UNDERSCORE
/* Define this if you have a Linux-style CD-ROM API */
#undef USE_LINUX_CD
/* Define this if you have a BSD-style CD-ROM API */
#undef USE_BSD_CD
#if defined(X11)
# define OUTPUT_STR "X11"
#elif defined(GGI)

View file

@ -496,6 +496,24 @@ else
fi
dnl ========================================================================
dnl Check for CD-ROM
AC_EGREP_CPP([QF_maGiC_VALUE],[
#include <linux/cdrom.h>
#ifdef CDROMREADTOCENTRY
QF_maGiC_VALUE
#endif
], AC_DEFINE(USE_LINUX_CD),
AC_EGREP_CPP([QF_maGiC_VALUE],[
#include <sys/cdio.h>
#ifdef CDIOREADTOCENTRY
QF_maGiC_VALUE
#endif
], AC_DEFINE(USE_BSD_CD))
)
dnl ========================================================================
dnl Check for networking