From b640cf7a0fcbc352d221b588b73baadf72b92b72 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 12 Jul 2010 00:49:29 +0000 Subject: use pkg-config for libcdio detection git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54479 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- configure.ac | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 149563b9..326a221e 100644 --- a/configure.ac +++ b/configure.ac @@ -94,17 +94,13 @@ AC_ARG_ENABLE(libcdio, [ --enable-libcdio use GNU libcdio for CD-ROM sup [ 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 + PKG_CHECK_MODULES(LIBCDIO, libcdio, [], AC_MSG_ERROR([*** libcdio not found!])) AM_CONDITIONAL(USE_LIBCDIO, true) fi +AC_SUBST(LIBCDIO_CFLAGS) +AC_SUBST(LIBCDIO_LIBS) + AC_ARG_ENABLE(opengl, [ --enable-opengl build OpenGL plugin (default=no)], [ BUILD_OPENGL="$enableval" ],[ BUILD_OPENGL="no" ]) -- cgit v1.2.3