diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-10 06:54:11 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-10 06:54:11 +0000 |
| commit | f7823bc1646f1885bd9a0a19a9645c0e2cb884bd (patch) | |
| tree | 15f115383205088b3fca3f4c41a319e1da183ac7 /configure.ac | |
| parent | fcf4fb0933140db08c7bc094abc9edb271c13359 (diff) | |
| download | pcsxr-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.ac | 17 |
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" ]) |
