summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-07-10 06:54:11 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-07-10 06:54:11 +0000
commitf7823bc1646f1885bd9a0a19a9645c0e2cb884bd (patch)
tree15f115383205088b3fca3f4c41a319e1da183ac7 /configure.ac
parentfcf4fb0933140db08c7bc094abc9edb271c13359 (diff)
downloadpcsxr-f7823bc1646f1885bd9a0a19a9645c0e2cb884bd.tar.gz
I was really stupid... just use libcdio and everything's fine, no need to deal with different OSes at all.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54442 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 167e8d32..149563b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,23 @@ if test "x$have_xtest" = xno; then
AC_MSG_ERROR([unable to find xtest headers])
fi
+AM_CONDITIONAL(USE_LIBCDIO, false)
+
+AC_ARG_ENABLE(libcdio, [ --enable-libcdio use GNU libcdio for CD-ROM support (default=no)],
+[ BUILD_LIBCDIO="$enableval" ],[ BUILD_LIBCDIO="no" ])
+
+if test "$BUILD_LIBCDIO" = "yes"; then
+ AC_CHECK_HEADER(cdio/mmc.h, have_mmc=yes, have_mmc=no)
+ if test "x$have_mmc" = xno; then
+ AC_MSG_ERROR([unable to find libcdio headers])
+ fi
+ AC_CHECK_LIB(cdio, cdio_open, have_cdiolib=yes, have_cdiolib=no)
+ if test "x$have_cdiolib" = xno; then
+ AC_MSG_ERROR([unable to find libcdio library])
+ fi
+ AM_CONDITIONAL(USE_LIBCDIO, true)
+fi
+
AC_ARG_ENABLE(opengl, [ --enable-opengl build OpenGL plugin (default=no)],
[ BUILD_OPENGL="$enableval" ],[ BUILD_OPENGL="no" ])